diff --git a/db/migrate/20220323143325_add_procedure_presentation_and_state_to_exports.rb b/db/migrate/20220323143325_add_procedure_presentation_and_state_to_exports.rb index 01921efb4..61f166723 100644 --- a/db/migrate/20220323143325_add_procedure_presentation_and_state_to_exports.rb +++ b/db/migrate/20220323143325_add_procedure_presentation_and_state_to_exports.rb @@ -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