gitlab-org--gitlab-foss/app/models/chat_team.rb
2017-03-07 15:20:22 +01:00

6 lines
143 B
Ruby

class ChatTeam < ActiveRecord::Base
validates :team_id, presence: true
validates :namespace, uniqueness: true
belongs_to :namespace
end