fix(exports): disable strong migration checks because we are operating on a “small” table

This commit is contained in:
Paul Chavard 2022-04-07 09:31:44 +02:00 committed by mfo
parent 84a1276a2f
commit 21945b6df0

View file

@ -3,7 +3,9 @@ class AddProcedurePresentationAndStateToExports < ActiveRecord::Migration[6.1]
def change
add_reference :exports, :procedure_presentation, null: true, index: { algorithm: :concurrently }
StrongMigrations.disable_check(:add_column)
add_column :exports, :statut, :string, default: 'tous'
StrongMigrations.enable_check(:add_column)
remove_index :exports, [:format, :time_span_type, :key]
add_index :exports, [:format, :time_span_type, :statut, :key], unique: true, algorithm: :concurrently
end