Ignore to be removed columns

This commit is contained in:
Paul Chavard 2019-08-28 16:14:20 +02:00
parent e975e2a0aa
commit 434210de2e
4 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,6 @@
class Attestation < ApplicationRecord
self.ignored_columns = ['pdf']
belongs_to :dossier
has_one_attached :pdf

View file

@ -1,4 +1,6 @@
class AttestationTemplate < ApplicationRecord
self.ignored_columns = ['logo', 'signature']
include ActionView::Helpers::NumberHelper
include TagsSubstitutionConcern

View file

@ -1,4 +1,6 @@
class Commentaire < ApplicationRecord
self.ignored_columns = ['file']
belongs_to :dossier, inverse_of: :commentaires, touch: true
belongs_to :user

View file

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