17 Categories Posts - getfretless/bluit GitHub Wiki
We have categories now, but they're an island. They become useful once we can assign posts to categories.
We'll implement posts-to-categories as a many-to-one relationship. In other words, each post is assigned only one category; but each category may be associated with many posts.
We'll have to make some changes in our models, but first we have a database change to make.
LAB
Create a migration to add any necessary database tables or columns to represent the relationship between posts and categories.
HINT: It's not complicated. At all.