demarches-normaliennes/db/migrate/20240716075916_add_new_champs_unique_index.rb

10 lines
250 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2024-07-16 11:12:46 +02:00
class AddNewChampsUniqueIndex < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :champs, [:dossier_id, :stream, :stable_id, :row_id], unique: true, algorithm: :concurrently
end
end