Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Web Browser
Associations II

Models II

What did we just do? Check out the diagram in the browser:

  1. We created three models - Movie, Actor, and Part.
  2. In the models, we used the has_many :through association to connect the Movie model to the Actor model through the Part model.

In this way, the has_many :through association sets up a many-to-many relationship between movies and actors.

Report a Bug
If you see a bug or any other issue with this page, please report it here.