mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
FIX revert system_notification_histories
This commit is contained in:
@@ -15,6 +15,9 @@ class SystemNotification < ApplicationRecord
|
||||
|
||||
default_scope { order(created_at: :desc)}
|
||||
|
||||
has_many :system_notification_histories
|
||||
has_many :users, through: :system_notification_histories
|
||||
|
||||
scope :is_top, lambda { where(is_top: true) }
|
||||
|
||||
def read_member?(user_id)
|
||||
|
||||
Reference in New Issue
Block a user