fix(migration): ignore strong migration for small nb of procedure

This commit is contained in:
simon lehericey 2022-10-27 09:39:41 +02:00
parent 8f76b7188c
commit 46852c7f81

View file

@ -1,7 +1,10 @@
class AddTagsToProcedures < ActiveRecord::Migration[6.1] class AddTagsToProcedures < ActiveRecord::Migration[6.1]
disable_ddl_transaction! disable_ddl_transaction!
def change def change
# we have a small number of procedure so it must go smoothly
safety_assured do
add_column :procedures, :tags, :text, array: true, default: [] add_column :procedures, :tags, :text, array: true, default: []
add_index :procedures, :tags, using: 'gin', algorithm: :concurrently add_index :procedures, :tags, using: 'gin', algorithm: :concurrently
end end
end end
end