Cleanup demarche archivee state

This commit is contained in:
Paul Chavard 2019-12-18 13:28:29 +01:00
parent 4527124755
commit fa2eea81aa
6 changed files with 17 additions and 22 deletions

View file

@ -0,0 +1,6 @@
class AddProceduresPathClosedAtHiddenAtIndex < ActiveRecord::Migration[5.2]
def change
add_index :procedures, [:path, :closed_at, :hidden_at], unique: true
remove_index :procedures, [:path, :archived_at, :hidden_at]
end
end