appdev-projects / helper-methods-part-1-and-2

0 stars 97 forks source link

Nd 02 own model #4

Closed SaraDawner2000 closed 3 months ago

SaraDawner2000 commented 3 months ago

Adds two models to the MSM app:

  1. Actor - columns are name, dob and bio, name and dob are required, bio has a default value set
  2. Role - columns are actor_id, movie_id and character, all are required, no default values set

Database associations built between all three models and utilized in the actors/show, roles/show and roles/index views.