diff --git a/app/models/traitement.rb b/app/models/traitement.rb index c7abd45ae..60e50b0ca 100644 --- a/app/models/traitement.rb +++ b/app/models/traitement.rb @@ -10,7 +10,7 @@ # dossier_id :bigint # class Traitement < ApplicationRecord - belongs_to :dossier + belongs_to :dossier, optional: false scope :termine_close_to_expiration, -> do joins(dossier: :procedure)