From the course: Ruby on Rails 5 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 5 Essential Training

Start my 1-month free trial

Challenge: Migrations for the CMS

(swoosh) - [Voiceover] We're ready for challenge assignment. In this challenge, you will use what we've learned in this chapter to create the migrations we need for our content management system. First, let me give you an idea of the structure that I have in mind for the content management system. Let's begin by looking at a sample layout for what I think a page will look like. That is the content that will be displayed to the public. There's going to be a navigation on the left which shows the available pages of content grouped by their subject. We can click on any page name and it will take us to that page. The content of each page will be displayed on the right. Each page will be composed of several sections. In my example, we're looking at page three and we see that there are three sections of content. The hierarchy is subject, page, section. Another way to diagram it would be like this. A subject has several pages and then a page has several sections. This concept where we have…

Contents