Fix discarded dossiers destruction
This commit is contained in:
parent
6e32117497
commit
5b56ec425b
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue