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 - Ruby on Rails Tutorial
From the course: Ruby on Rails 5 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Introduction to databases7m 53s
-
(Locked)
Create a database2m 27s
-
(Locked)
Migrations3m 4s
-
(Locked)
Generate migrations4m 3s
-
(Locked)
Generate models7m 58s
-
(Locked)
Run migrations8m 22s
-
(Locked)
Migration methods7m 47s
-
(Locked)
Solve migration problems5m 41s
-
(Locked)
Challenge: Migrations for the CMS4m
-
(Locked)
Solution: Migrations for the CMS4m 20s
-
-
-
-
-
-
-
-
-
-
-
-
-