From the course: Ruby on Rails 6 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Migrations for the CMS

Challenge: Migrations for the CMS - Ruby on Rails Tutorial

From the course: Ruby on Rails 6 Essential Training

Start my 1-month free trial

Challenge: Migrations for the CMS

(electronic music) It's time for a challenge assignment. And this time your challenge is going to be to create the migrations we'll need for the content management system. First, let's get an overview of what the CMS is going to look like. The idea is that there will be a navigation that shows us a number of subjects, and below each of one those subjects is going to be a set of pages. So for example, there might be a subject that's about the products and below it would be a page for each product. And then on the right side, we would have an area that would display the actual content from the page itself. So the left side is a navigation, the right side is shows us the content that we want to look at. Now, in order to make this work we need to have a relationship between those subjects and the pages, so the pages know what subjects they belong to. This is a common features of relational databases. And the way…

Contents