Merge pull request #3083 from betagouv/fix-3081

[Fix #3081] If a dossier is destroyed, then destroy the attestation
This commit is contained in:
Paul Chavard 2018-11-28 16:41:31 +01:00 committed by GitHub
commit 290f44ba0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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