Merge pull request #10818 from demarches-simplifiees/remove-unused-hidden-at-for-dossiers-V2-ldu

[Tech] Retirer la colonne obsolète 'hidden_at' des dossiers (part 2)
This commit is contained in:
Lisa Durand 2024-09-23 09:14:49 +00:00 committed by GitHub
commit f6f70a5c2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
class Dossier < ApplicationRecord 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 DossierCloneConcern
include DossierCorrectableConcern include DossierCorrectableConcern

View file

@ -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

View file

@ -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.boolean "forced_groupe_instructeur", default: false, null: false
t.bigint "groupe_instructeur_id" t.bigint "groupe_instructeur_id"
t.datetime "groupe_instructeur_updated_at", precision: nil 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_administration_at", precision: nil
t.datetime "hidden_by_expired_at" t.datetime "hidden_by_expired_at"
t.string "hidden_by_reason" t.string "hidden_by_reason"