Creating A Migration
Goals
- Create a database table for topics with a title and a description
- A record
- Model
- View
- Controller
| Topics |
|---|
| id |
| title |
| description |
Steps
Step 1
Type this in the terminal:rails generate scaffold topic title:string description:textStep 2
Type this in the terminal:rake db:migrate
Explanation
Rake
Explaining MVC and Records
![]()
Model
View
Controller
Next Step:
Go on to CRUD With Scaffolding
Back to Running Your Application Locally
