semester_process_mail.rb 303 Bytes
Newer Older
1
2
class SemesterProcessMail < ApplicationRecord
  belongs_to :semester_process_volunteer
3
  belongs_to :sent_by, class_name: 'User', inverse_of: 'semester_process_mails'
4
5
6
7
8
9

  enum kind: { mail: 0, reminder: 1 }

  scope :mail, -> { where(kind: 'mail') }
  scope :reminder, -> { where(kind: 'reminder') }
end