2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-09-28 10:43:46 +02:00
|
|
|
class RemoveExportsUnicityConstraint < ActiveRecord::Migration[7.0]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
remove_index :exports, ["format", "time_span_type", "statut", "key"], unique: true
|
|
|
|
|
|
|
|
add_index :exports, "key", unique: false, algorithm: :concurrently
|
|
|
|
end
|
|
|
|
end
|