mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
8 lines
182 B
Ruby
8 lines
182 B
Ruby
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
|