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 18, 2024
1 parent 6b322d6 commit 14f6d2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_09_16_114050) do
ActiveRecord::Schema[7.0].define(version: 2024_09_18_132319) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_buffercache"
enable_extension "pg_stat_statements"
Expand Down 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 14f6d2e

Please sign in to comment.