mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 19:37:29 -05:00
8 lines
179 B
Ruby
8 lines
179 B
Ruby
|
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
|