models: require belong_to associations on traitement
This commit is contained in:
parent
059c147ffc
commit
d807700c7b
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
# dossier_id :bigint
|
# dossier_id :bigint
|
||||||
#
|
#
|
||||||
class Traitement < ApplicationRecord
|
class Traitement < ApplicationRecord
|
||||||
belongs_to :dossier
|
belongs_to :dossier, optional: false
|
||||||
|
|
||||||
scope :termine_close_to_expiration, -> do
|
scope :termine_close_to_expiration, -> do
|
||||||
joins(dossier: :procedure)
|
joins(dossier: :procedure)
|
||||||
|
|
Loading…
Reference in a new issue