Files
gitlink-forgeplus/app/models/watcher.rb
2020-03-09 00:40:16 +08:00

5 lines
136 B
Ruby

class Watcher < ApplicationRecord
belongs_to :user
belongs_to :watchable, polymorphic: true, counter_cache: :watchers_count
end