mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
7 lines
264 B
Ruby
7 lines
264 B
Ruby
class Notification < ActiveRecord::Base
|
|
has_many :user_notifications, inverse_of: :notification
|
|
has_many :users, through: :user_notifications
|
|
belongs_to :generator_user, class_name: 'User'
|
|
|
|
enum type_of: [:assignment, :recent_changes, :system_message]
|
|
end
|