models: require belong_to associations on deleted_dossier
This commit is contained in:
parent
dd1bed9340
commit
01248022bf
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
# procedure_id :bigint
|
||||
#
|
||||
class DeletedDossier < ApplicationRecord
|
||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :deleted_dossiers
|
||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :deleted_dossiers, optional: false
|
||||
|
||||
validates :dossier_id, uniqueness: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue