class Team
	include Mongoid::Document
	include Mongoid::Timestamps

	field :name, type: String
	field :location, type: String

	has_many :participations
	has_many :records
end

class Team
	include Mongoid::Document
	include Mongoid::Timestamps

	field :_id, type: Integer

	field :name, type: String
	field :location, type: String

	has_many :participations
	has_many :records

	validates :_id, uniqueness: true
end

Switch to Team number schema
Switch to Team number schema
