Relationship Model5:36 with Kenneth Love
To make our app truly social, we need to add a model to represent the relationship between two users. We'll do this with a new model that has two foreign keys, both of which point back to the `User` model.
indexes- A list of indexes to create on the model. These could be fields to index for faster searches or, as in our case, fields to make unique. More information
.join()- A query that references another table or another query.
You need to sign up for Treehouse in order to download course files.Sign up