debian-mirror-gitlab/app/models/chat_team.rb
2017-08-17 22:00:37 +05:30

6 lines
143 B
Ruby

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