diff --git a/app/models/user.rb b/app/models/user.rb index 7140bf745..7e88fda3a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -14,6 +14,7 @@ class User < ApplicationRecord has_many :dossiers, dependent: :destroy has_many :invites, dependent: :destroy + has_many :dossiers_invites, through: :invites, source: :dossier has_many :piece_justificative, dependent: :destroy has_many :cerfa, dependent: :destroy has_one :france_connect_information, dependent: :destroy