2.3.3 A user has_many microposts

One of the most powerful features of Rails is the ability to form
associations between different data models. In the case of our User
model, each user potentially has many microposts. We can express this in
code by updating the User and Micropost models as in Listing 2.10 and
Listing 2.11.