demarches-normaliennes/db/migrate/20240410193614_add_partial_index_on_dol.rb
2024-04-11 10:46:40 +02:00

7 lines
205 B
Ruby

class AddPartialIndexOnDol < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_index :dossier_operation_logs, :id, where: 'data is not null', algorithm: :concurrently
end
end