Merge pull request #10934 from demarches-simplifiees/groupe_instructeur_dependent_export_template
ETQ admin, je peux supprimer un groupe instructeur qui contient des export templates
This commit is contained in:
commit
222038d9de
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class GroupeInstructeur < ApplicationRecord
|
|||
has_many :batch_operations, through: :dossiers, source: :batch_operations
|
||||
has_many :assignments, class_name: 'DossierAssignment', dependent: :nullify, inverse_of: :groupe_instructeur
|
||||
has_many :previous_assignments, class_name: 'DossierAssignment', dependent: :nullify, inverse_of: :previous_groupe_instructeur
|
||||
has_many :export_templates
|
||||
has_many :export_templates, dependent: :destroy
|
||||
has_and_belongs_to_many :exports, dependent: :destroy
|
||||
|
||||
has_one :defaut_procedure, -> { with_discarded }, class_name: 'Procedure', foreign_key: :defaut_groupe_instructeur_id, dependent: :nullify, inverse_of: :defaut_groupe_instructeur
|
||||
|
|
Loading…
Reference in a new issue