Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> u.betsets.last.bets.find(:all, :include => :game, :conditions => "games.winner_id = bets.team_id")
- +----+-----------+---------+------------+-------------------------+-------------------------+---------------+
- | id | betset_id | game_id | team_id | created_at | updated_at | pool_entry_id |
- +----+-----------+---------+------------+-------------------------+-------------------------+---------------+
- | 33 | 3 | 3603 | 281110142 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 33 |
- | 36 | 3 | 3606 | 1166024573 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 36 |
- | 38 | 3 | 3608 | 854565970 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 38 |
- | 39 | 3 | 3609 | 264531584 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 39 |
- | 41 | 3 | 3611 | 2078450470 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 41 |
- | 42 | 3 | 3612 | 1452408775 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 42 |
- | 43 | 3 | 3613 | 1187371253 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 43 |
- | 44 | 3 | 3614 | 1584273928 | 2009-10-15 14:32:15 UTC | 2009-10-15 14:32:15 UTC | 44 |
- +----+-----------+---------+------------+-------------------------+-------------------------+---------------+
Add Comment
Please, Sign In to add comment