models: require belong_to associations on dossier
This commit is contained in:
parent
01248022bf
commit
51d392a1dc
4 changed files with 5 additions and 7 deletions
|
@ -75,10 +75,10 @@ class Dossier < ApplicationRecord
|
|||
|
||||
has_many :dossier_operation_logs, -> { order(:created_at) }, dependent: :nullify, inverse_of: :dossier
|
||||
|
||||
belongs_to :groupe_instructeur
|
||||
belongs_to :groupe_instructeur, optional: false
|
||||
has_one :procedure, through: :groupe_instructeur
|
||||
belongs_to :revision, class_name: 'ProcedureRevision', optional: true
|
||||
belongs_to :user
|
||||
belongs_to :user, optional: false
|
||||
|
||||
accepts_nested_attributes_for :champs
|
||||
accepts_nested_attributes_for :champs_private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue