Verified Commit 96a0c7fa authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix relation

parent 7284d030
......@@ -2,8 +2,8 @@ class SemesterProcess < ApplicationRecord
belongs_to :creator, -> { with_deleted }, class_name: 'User', inverse_of: 'semester_processes'
belongs_to :mail_posted_by, -> { with_deleted }, class_name: 'User',
inverse_of: 'semester_process_mails_posted', optional: true
belongs_to :semester_process_reminder_mail_posted, -> { with_deleted }, class_name: 'User',
inverse_of: 'semester_process_mails_posted', optional: true
belongs_to :reminder_mail_posted_by, -> { with_deleted }, class_name: 'User',
inverse_of: 'semester_process_reminder_mail_posted', optional: true
has_many :semester_process_volunteers, dependent: :destroy
has_many :volunteers, through: :semester_process_volunteers
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment