mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
10 lines
210 B
Ruby
10 lines
210 B
Ruby
|
class TopicInvite < ActiveRecord::Base
|
||
|
belongs_to :topic
|
||
|
belongs_to :invite
|
||
|
|
||
|
validates_presence_of :topic_id
|
||
|
validates_presence_of :invite_id
|
||
|
|
||
|
validates_uniqueness_of :topic_id, scope: :invite_id
|
||
|
end
|