feat(DB): ignore migrated_champ_routage_columns

This commit is contained in:
Eric Leroy-Terquem 2023-07-03 14:33:36 +02:00
parent 7fe4ec67c3
commit c82727120c
3 changed files with 11 additions and 1 deletions

View file

@ -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',

View file

@ -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 }

View file

@ -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