Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- team_results:
- id
- competition_id
- nation_id
- rank
- total
- team_jumper_results:
- id
- jumper_id
- team_result_id
- jump1
- points1
- jump2
- points2
- class TeamResult
- belongs_to :competition
- belongs_to :nation
- has_many :jumper_results, :foreign_key => "team_result_id"
- end
- class JumperResult
- belongs_to :team_result, :foreign_key => "team_result_id"
- belongs_to :jumper, :class_name => "Member", :foreign_key => "jumper_id"
- end
Add Comment
Please, Sign In to add comment