Run
localhost
bin/rails server
Create a database model
This command tells Rails to generate a model named
Product
which has a
name
column and type of
string
in the database. Later on, you'll learn how to add other column types.
Run a migrations
use the following command to run the migrations:
Scaffolding