Link user and instructeur

This commit is contained in:
simon lehericey 2019-08-08 16:49:40 +02:00
parent e3fd1cc33a
commit dd4ffb926c
4 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,7 @@ class User < ApplicationRecord
has_many :dossiers_invites, through: :invites, source: :dossier
has_many :feedbacks, dependent: :destroy
has_one :france_connect_information, dependent: :destroy
belongs_to :instructeur
accepts_nested_attributes_for :france_connect_information