diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 99f2a31b5..2f4d900ad 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -16,6 +16,7 @@ # en_instruction_at :datetime # groupe_instructeur_updated_at :datetime # hidden_at :datetime +# hidden_by_instructeur_at :datetime # hidden_by_user_at :datetime # identity_updated_at :datetime # last_avis_updated_at :datetime diff --git a/db/migrate/20211202133139_add_hidden_by_administration_to_dossiers.rb b/db/migrate/20211202133139_add_hidden_by_administration_to_dossiers.rb new file mode 100644 index 000000000..e043a8da7 --- /dev/null +++ b/db/migrate/20211202133139_add_hidden_by_administration_to_dossiers.rb @@ -0,0 +1,5 @@ +class AddHiddenByAdministrationToDossiers < ActiveRecord::Migration[6.1] + def change + add_column :dossiers, :hidden_by_administration_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 75c1a7327..84b680dba 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_12_02_135804) do +ActiveRecord::Schema.define(version: 2021_12_02_133139) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -326,6 +326,7 @@ ActiveRecord::Schema.define(version: 2021_12_02_135804) do t.datetime "hidden_by_user_at" t.index "to_tsvector('french'::regconfig, (search_terms || private_search_terms))", name: "index_dossiers_on_search_terms_private_search_terms", using: :gin t.index "to_tsvector('french'::regconfig, search_terms)", name: "index_dossiers_on_search_terms", using: :gin + t.datetime "hidden_by_instructeur_at" t.index ["archived"], name: "index_dossiers_on_archived" t.index ["dossier_transfer_id"], name: "index_dossiers_on_dossier_transfer_id" t.index ["groupe_instructeur_id"], name: "index_dossiers_on_groupe_instructeur_id"