Merge pull request #3083 from betagouv/fix-3081
[Fix #3081] If a dossier is destroyed, then destroy the attestation
This commit is contained in:
commit
290f44ba0b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Dossier < ApplicationRecord
|
|||
|
||||
has_one :etablissement, dependent: :destroy
|
||||
has_one :individual, dependent: :destroy
|
||||
has_one :attestation
|
||||
has_one :attestation, dependent: :destroy
|
||||
|
||||
has_many :pieces_justificatives, dependent: :destroy
|
||||
has_many :champs, -> { public_only.ordered }, dependent: :destroy
|
||||
|
|
Loading…
Reference in a new issue