1 2 3 4 5
class ChatTeam < ActiveRecord::Base validates :team_id, presence: true belongs_to :namespace end