User: add has many relation to dossiers_invites
This commit is contained in:
parent
508304a2bf
commit
0bff7abb0c
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
has_many :dossiers, dependent: :destroy
|
has_many :dossiers, dependent: :destroy
|
||||||
has_many :invites, dependent: :destroy
|
has_many :invites, dependent: :destroy
|
||||||
|
has_many :dossiers_invites, through: :invites, source: :dossier
|
||||||
has_many :piece_justificative, dependent: :destroy
|
has_many :piece_justificative, dependent: :destroy
|
||||||
has_many :cerfa, dependent: :destroy
|
has_many :cerfa, dependent: :destroy
|
||||||
has_one :france_connect_information, dependent: :destroy
|
has_one :france_connect_information, dependent: :destroy
|
||||||
|
|
Loading…
Add table
Reference in a new issue