require "frecon/position"

module FReCon
	class Record
		include Mongoid::Document
		include Mongoid::Timestamps

		field :notes, type: String
		field :position, type: Position

		belongs_to :match
		belongs_to :participation

		validates :position, :match_id, :participation_id, presence: true
	end
end

require "frecon/position"

module FReCon
	class Record
		include Mongoid::Document
		include Mongoid::Timestamps

		field :notes, type: String
		field :position, type: Position

		belongs_to :match
		belongs_to :team

		validates :position, :match_id, :team_id, presence: true
	end
end

Revert "Record: Use participation, not team"
Revert "Record: Use participation, not team"

This reverts commit dc5d1b6f723fb129c25e7fbb201fce0052d9b85a.
No need for participations.
