Skip to content

Commit

Permalink
migration to remove hidden_at from dossiers
Browse files Browse the repository at this point in the history
  • Loading branch information
lisa-durand committed Sep 23, 2024
1 parent b6aac5f commit 0272f79
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/dossier.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@
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"
Expand Down

0 comments on commit 0272f79

Please sign in to comment.