discourse/app/models/topic_invite.rb
2013-02-07 16:45:24 +01:00

10 lines
211 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