-
New app
rails _5.2.4_ new actor-dialogues
-
cd actor-dialogues
-
rails s
and open http://localhost:3000 -
Create a dialogue scaffold
rails g scaffold dialogue line:text movie:string nonveg:boolean
- Run Database migration
rails db:migrate
-
rails s
and open http://localhost:3000/dialogues -
Create dialogues
- Git clean everything
git checkout .
git clean -df
- Let's create a Dialogue Model
rails g model Dialogue line:text movie:string nonveg:boolean
rails db:migrate