ref: master
plugins/admin_notifications/lib/admin_notifications_plugin/notifications_user.rb
1 2 3 4 5 6 7 8 9 10 |
class AdminNotificationsPlugin::NotificationsUser < ApplicationRecord self.table_name = "admin_notifications_plugin_notifications_users" belongs_to :user belongs_to :notification, class_name: 'AdminNotificationsPlugin::Notification' attr_accessible :user_id, :notification_id validates_uniqueness_of :user_id, :scope => :notification_id end |