From 21945b6df085f6b8978a2a459e450f9662a6ce5c Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 7 Apr 2022 09:31:44 +0200 Subject: [PATCH] =?UTF-8?q?fix(exports):=20disable=20strong=20migration=20?= =?UTF-8?q?checks=20because=20we=20are=20operating=20on=20a=20=E2=80=9Csma?= =?UTF-8?q?ll=E2=80=9D=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...323143325_add_procedure_presentation_and_state_to_exports.rb | 2 ++ 1 file changed, 2 insertions(+) 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