chore(dossier): can destroy dossier having dossier_batch_operations
Ça peut arriver lors des démarches en test, avec des dossiers tests en cours d'instruction.
This commit is contained in:
parent
7d12b2ad3b
commit
0958053c72
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class Dossier < ApplicationRecord
|
|||
belongs_to :user, optional: true
|
||||
belongs_to :parent_dossier, class_name: 'Dossier', optional: true
|
||||
belongs_to :batch_operation, optional: true
|
||||
has_many :dossier_batch_operations
|
||||
has_many :dossier_batch_operations, dependent: :destroy
|
||||
has_many :batch_operations, through: :dossier_batch_operations
|
||||
has_one :france_connect_information, through: :user
|
||||
|
||||
|
|
Loading…
Reference in a new issue