Add a scope to Dossier to check if procedure is not hidden

This commit is contained in:
Mathieu Magnin 2017-06-27 15:26:40 +02:00
parent 760efcdad3
commit be3304f71e
6 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,6 @@
class AddHiddenAtToDossiers < ActiveRecord::Migration[5.0]
def change
add_column :dossiers, :hidden_at, :datetime
add_index :dossiers, :hidden_at
end
end