feat(dossier): replace discarded with visible_by_administration

This commit is contained in:
Paul Chavard 2022-03-09 10:27:43 +01:00
parent 59b0f3961d
commit 54b559364a
20 changed files with 149 additions and 164 deletions

View file

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