diff --git a/app/models/dossier.rb b/app/models/dossier.rb index eee97cee9..2ef0ce57f 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Dossier < ApplicationRecord - self.ignored_columns += [:re_instructed_at, :search_terms, :private_search_terms, :hidden_at] + self.ignored_columns += [:re_instructed_at, :search_terms, :private_search_terms] include DossierCloneConcern include DossierCorrectableConcern diff --git a/db/migrate/20240918132319_remove_hidden_at_column_from_dossiers.rb b/db/migrate/20240918132319_remove_hidden_at_column_from_dossiers.rb new file mode 100644 index 000000000..fc6e3731c --- /dev/null +++ b/db/migrate/20240918132319_remove_hidden_at_column_from_dossiers.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class RemoveHiddenAtColumnFromDossiers < ActiveRecord::Migration[7.0] + def change + safety_assured { remove_columns :dossiers, :hidden_at } + end +end diff --git a/db/schema.rb b/db/schema.rb index d878ff0ba..afe08c1d9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -483,7 +483,6 @@ ActiveRecord::Schema[7.0].define(version: 2024_09_19_145757) do t.boolean "forced_groupe_instructeur", default: false, null: false t.bigint "groupe_instructeur_id" t.datetime "groupe_instructeur_updated_at", precision: nil - t.datetime "hidden_at", precision: nil t.datetime "hidden_by_administration_at", precision: nil t.datetime "hidden_by_expired_at" t.string "hidden_by_reason"