Most of your Rails models are going to be connected to other models in some way. An Author has many Articles, and each Article belongs to an Author. A Doctor has many Patients, and a Patient may have many Doctors as well. Rails uses associations to make it easy to track these relationships in your database.
What you'll learn
- has_many
- belongs_to
- has_one
- has_and_belongs_to_many
- has_many :through