models: require belong_to associations on groupe_instructeur

This commit is contained in:
Pierre de La Morinerie 2020-07-20 17:22:44 +02:00
parent 5a7bd24fba
commit 29e8c43e5e
4 changed files with 4 additions and 4 deletions

View file

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