clean(db): remove ignored column

This commit is contained in:
mfo 2024-09-24 09:55:59 +02:00
parent 8bf6272c9b
commit a71e83dabe
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
7 changed files with 20 additions and 25 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class Dossier < ApplicationRecord
self.ignored_columns += [:re_instructed_at, :search_terms, :private_search_terms]
self.ignored_columns += [:search_terms, :private_search_terms]
include DossierCloneConcern
include DossierCorrectableConcern

View file

@ -1,8 +1,6 @@
# frozen_string_literal: true
class Instructeur < ApplicationRecord
self.ignored_columns += [:agent_connect_id]
include UserFindByConcern
has_and_belongs_to_many :administrateurs

View file

@ -12,13 +12,6 @@ class Procedure < ApplicationRecord
include Discard::Model
self.discard_column = :hidden_at
self.ignored_columns += [
:direction,
:durees_conservation_required,
:cerfa_flag,
:test_started_at,
:lien_demarche
]
default_scope -> { kept }

View file

@ -2,7 +2,6 @@
class Traitement < ApplicationRecord
belongs_to :dossier, optional: false
self.ignored_columns += [:process_expired, :process_expired_migrated]
scope :en_construction, -> { where(state: Dossier.states.fetch(:en_construction)) }
scope :en_instruction, -> { where(state: Dossier.states.fetch(:en_instruction)) }
scope :termine, -> { where(state: Dossier::TERMINE) }

View file

@ -1,8 +1,6 @@
# frozen_string_literal: true
class TypeDeChamp < ApplicationRecord
self.ignored_columns += [:migrated_parent, :revision_id, :parent_id, :order_place]
FILE_MAX_SIZE = 200.megabytes
FEATURE_FLAGS = {
engagement_juridique: :engagement_juridique_type_de_champ,