mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:53:40 +08:00
11 lines
211 B
Ruby
11 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
|