mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
4
app/models/watcher.rb
Normal file
4
app/models/watcher.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class Watcher < ApplicationRecord
|
||||
belongs_to :user
|
||||
belongs_to :watchable, polymorphic: true, counter_cache: :watchers_count
|
||||
end
|
||||
Reference in New Issue
Block a user