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:
LeSim 2022-10-27 09:53:40 +02:00 committed by GitHub
commit 71e8277a4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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