- Creating and modifying tables using ActiveRecord
- Writing associations between models
- Build out the schema for the actors and characters table.
- Actors should have a
first_name
and alast_name
. - Characters should have a
name
and ashow_id
. - Associate the Actor model with the Character and Show model. Do any of the models need a foreign key?
- Write the two methods
full_name
andlist_roles
that the spec requires. Write any helper methods that you need.
- Add the column
catchphrase
to your character model. - Define the method
say_that_thing_you_say
and make the spec pass.
- Create the neccesary associations between shows, networks, and characters.
- Add all the attributes to the Show model that the spec requires.
- Rails Guide - Active Record Associations
- Api dock - Active Record Associations
- Rails Guide - Active Record Migrations