feat(DB): ignore migrated_champ_routage_columns
This commit is contained in:
parent
7fe4ec67c3
commit
c82727120c
3 changed files with 11 additions and 1 deletions
|
@ -56,6 +56,8 @@ class Dossier < ApplicationRecord
|
|||
include DossierSearchableConcern
|
||||
include DossierSectionsConcern
|
||||
|
||||
self.ignored_columns += [:migrated_champ_routage]
|
||||
|
||||
enum state: {
|
||||
brouillon: 'brouillon',
|
||||
en_construction: 'en_construction',
|
||||
|
|
|
@ -69,7 +69,14 @@ 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]
|
||||
self.ignored_columns += [
|
||||
:direction,
|
||||
:durees_conservation_required,
|
||||
:cerfa_flag,
|
||||
:test_started_at,
|
||||
:lien_demarche,
|
||||
:migrated_champ_routage
|
||||
]
|
||||
|
||||
default_scope -> { kept }
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#
|
||||
class ProcedureRevision < ApplicationRecord
|
||||
self.implicit_order_column = :created_at
|
||||
self.ignored_columns += [:migrated_champ_routage]
|
||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :revisions, optional: false
|
||||
belongs_to :dossier_submitted_message, inverse_of: :revisions, optional: true, dependent: :destroy
|
||||
|
||||
|
|
Loading…
Reference in a new issue