forgeplus/app/models/competition_score.rb

23 lines
628 B
Ruby

# == Schema Information
#
# Table name: competition_scores
#
# id :integer not null, primary key
# user_id :integer
# score :float(24)
# score_type :string(255)
# region :string(255)
# cost_time :integer
# competition_id :integer
# competition_stage_id :integer
# competition_team_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class CompetitionScore < ActiveRecord::Base
belongs_to :competition
belongs_to :competition_team
belongs_to :user
end