[x] Create a Coach class and a migration for it, The coach should have a name and a team. (XL)
[x] Create a Game class and a migration for it which should include a date, a home team, an away team, and scores for each. (XL)
[ ] Add coaches for every team that made the playoffs, every game for the last week of the regular season, and every game for one specific team. (XL)
[ ] Define Team#won? which should say whether a team won a particular game and test it against the data you entered. (XL)
[ ] Define Team#opponents, which should return every team a team played during the season. (L)
[ ] Define Coach#beat?, which should say whether a coach beat another team. Extend the method to be able to say whether a coach beat another team, or whether a coach beat another coach. (L)
[ ] Add validations for each class as appropriate. (You'll have to read up on what kind of validations are available.) Attempt to create an object that should fail the validation to ensure the validation is structured correctly. (XL)
[ ] Another step in the HTML document: take step_2.html and make it look like step_2_after.png (M)
[ ] turn the following in, within a new branch off of master, in a folder called active_record-2 (M)
[x] city.rb and state.rb files with appropriate validations (M)
[ ] team.rb, coach.rb, and game.rb files with appropriate validations and methods as described above (M)
Tasks
active_record-2
(M)city.rb
andstate.rb
files with appropriate validations (M)team.rb
,coach.rb
, andgame.rb
files with appropriate validations and methods as described above (M)step_2.html
(M)TIY-Assignments
wiki (S)TIY-Assignments
repo, named appropriately (S)TIY-Assignments
folder as on previous assignments (S)