scinote-web/app/models/notification.rb

5 lines
150 B
Ruby

class Notification < ActiveRecord::Base
has_many :user_notifications, inverse_of: :notification
has_many :users, through: :user_notifications
end