Ignore :expects_multiple_submissions on the correct model (#4079)

Ignore la colonne `:expects_multiple_submissions` sur le bon modèle
This commit is contained in:
Pierre de La Morinerie 2019-07-11 12:35:48 +02:00 committed by GitHub
commit 1f99df9d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -1,8 +1,6 @@
class Dossier < ApplicationRecord
include DossierFilteringConcern
self.ignored_columns = [:expects_multiple_submissions]
enum state: {
brouillon: 'brouillon',
en_construction: 'en_construction',

View file

@ -3,7 +3,7 @@ require Rails.root.join('lib', 'percentile')
class Procedure < ApplicationRecord
MAX_DUREE_CONSERVATION = 36
self.ignored_columns = [:individual_with_siret]
self.ignored_columns = [:individual_with_siret, :expects_multiple_submissions]
has_many :types_de_piece_justificative, -> { ordered }, inverse_of: :procedure, dependent: :destroy
has_many :types_de_champ, -> { root.public_only.ordered }, inverse_of: :procedure, dependent: :destroy