migration to remove hidden_at from dossiers

This commit is contained in:
Lisa Durand 2024-09-18 15:27:46 +02:00
parent b6aac5f80b
commit 0272f79c6a
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816
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"