educoder/app/models/watcher.rb

4 lines
102 B

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