Link assign_to and procedure by groupe_instructeur
This commit is contained in:
parent
4da12ed3e8
commit
ad7ef6c739
4 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
class AssignTo < ApplicationRecord
|
||||
belongs_to :procedure
|
||||
belongs_to :instructeur
|
||||
belongs_to :groupe_instructeur
|
||||
has_one :procedure_presentation, dependent: :destroy
|
||||
has_one :procedure, through: :groupe_instructeur
|
||||
|
||||
scope :with_email_notifications, -> { where(email_notifications_enabled: true) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue