mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
5 lines
136 B
Ruby
5 lines
136 B
Ruby
class Watcher < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :watchable, polymorphic: true, counter_cache: :watchers_count
|
|
end
|