Merge pull request #7130 from tchak/fix-exports-migration
fix(exports): disable strong migration checks because we are operating on a “small” table
This commit is contained in:
commit
59cddcbfe6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue