discourse/app/models/topic_allowed_user.rb

8 lines
179 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class TopicAllowedUser < ActiveRecord::Base
belongs_to :topic
belongs_to :user
attr_accessible :topic_id, :user_id
validates_uniqueness_of :topic_id, scope: :user_id
end