Merge pull request #7964 from betagouv/fix_strong_migration_on_procedures
fix(migration): ignore strong migration pour la petite table procédures
This commit is contained in:
commit
71e8277a4f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue