You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dave Strus edited this page Jul 16, 2015
·
1 revision
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.