discourse/app/models/topic_allowed_group.rb

8 lines
182 B
Ruby
Raw Normal View History

class TopicAllowedGroup < ActiveRecord::Base
belongs_to :topic
belongs_to :group
attr_accessible :group_id, :user_id
validates_uniqueness_of :topic_id, scope: :group_id
end