Creating A Migration
Goals
Topics |
---|
id |
title |
description |
Steps
Step 1
Option 1.1: Without Docker
Type this in the terminal:rails generate scaffold topic title:string description:textOption 1.2: With Docker
Type this in the terminal:docker-compose run web rails generate scaffold topic title:string description:text
Explanation
Databases don't create tables by themselves - they need instructions.
Explanation
Next Step:
Go on to CRUD With Scaffolding