Merge pull request #5253 from betagouv/dev

2020-06-11-01
This commit is contained in:
krichtof 2020-06-11 11:03:52 +02:00 committed by GitHub
commit d4e08b49e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
class GroupeInstructeur < ApplicationRecord class GroupeInstructeur < ApplicationRecord
DEFAULT_LABEL = 'défaut' DEFAULT_LABEL = 'défaut'
belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs
has_many :assign_tos has_many :assign_tos, dependent: :destroy
has_many :instructeurs, through: :assign_tos, dependent: :destroy has_many :instructeurs, through: :assign_tos
has_many :dossiers has_many :dossiers
has_and_belongs_to_many :exports has_and_belongs_to_many :exports