models: require belong_to associations on groupe_instructeur
This commit is contained in:
parent
5a7bd24fba
commit
29e8c43e5e
4 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
class GroupeInstructeur < ApplicationRecord
|
||||
DEFAULT_LABEL = 'défaut'
|
||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs
|
||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs, optional: false
|
||||
has_many :assign_tos, dependent: :destroy
|
||||
has_many :instructeurs, through: :assign_tos
|
||||
has_many :dossiers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue