feat(dossier): replace discarded with visible_by_administration
This commit is contained in:
parent
59b0f3961d
commit
54b559364a
20 changed files with 149 additions and 164 deletions
|
@ -20,7 +20,7 @@
|
|||
# type_de_champ_id :integer
|
||||
#
|
||||
class Champ < ApplicationRecord
|
||||
belongs_to :dossier, -> { with_discarded }, inverse_of: false, touch: true, optional: false
|
||||
belongs_to :dossier, inverse_of: false, touch: true, optional: false
|
||||
belongs_to :type_de_champ, inverse_of: :champ, optional: false
|
||||
belongs_to :parent, class_name: 'Champ', optional: true
|
||||
has_one_attached :piece_justificative_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue