2013-02-05 14:16:51 -05:00
|
|
|
class TopicInvite < ActiveRecord::Base
|
2013-02-07 10:45:24 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
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
|