Fix discarded dossiers destruction

This commit is contained in:
Paul Chavard 2021-04-13 19:24:02 +01:00
parent 6e32117497
commit 5b56ec425b
2 changed files with 15 additions and 0 deletions

View file

@ -62,6 +62,9 @@ class Dossier < ApplicationRecord
has_one :attestation, dependent: :destroy
has_one :france_connect_information, through: :user
# FIXME: some dossiers have more than one attestation
has_many :attestations, dependent: :destroy
has_one_attached :justificatif_motivation
has_one_attached :pdf_export_for_instructeur