Link AssignTo et GroupeInstructeur

This commit is contained in:
simon lehericey 2019-08-20 16:47:41 +02:00
parent 115d91387c
commit 97884c4349
6 changed files with 30 additions and 1 deletions

View file

@ -1,6 +1,7 @@
class AssignTo < ApplicationRecord
belongs_to :procedure
belongs_to :instructeur
belongs_to :groupe_instructeur
has_one :procedure_presentation, dependent: :destroy
scope :with_email_notifications, -> { where(email_notifications_enabled: true) }