demarches-normaliennes/db/migrate/20230110181426_add_champs_row_id_index.rb
2023-01-10 19:31:41 +01:00

7 lines
213 B
Ruby

class AddChampsRowIdIndex < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_index :champs, [:type_de_champ_id, :dossier_id, :row_id], unique: true, algorithm: :concurrently
end
end