Too Long; Didn't Read
An association is a connection between two Active Record models. It makes much easier to perform various operations on the records in your code. We will divide associations into four categories: One to One, One to Many, Many to Many Polymorphic, Has Many Through and Has Belongs to Many Associations. Cover your associations with RSpec tests to make sure everything works the way you want it to. The tests for associations get more complex to write the more relations you create. You should check it out how to create your own association factories.