diff --git a/db/migrate/20221006074425_add_tags_to_procedures.rb b/db/migrate/20221006074425_add_tags_to_procedures.rb index 895a77a1a..571e12f3c 100644 --- a/db/migrate/20221006074425_add_tags_to_procedures.rb +++ b/db/migrate/20221006074425_add_tags_to_procedures.rb @@ -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