Download the prerequisites
- node js
- yarn
- sqlite3
- rubyinstaller
Run the command
- gem install sqlite3
- gem install rails
To create a new project
- rails new <project_name>
Navigate to the directory and run
- rails server
To create new controller
- rails generate controller controller_name action
To create a new model ie table
- rails generate scaffold model_name attribute: datatype
To migrating the model into schema
- rails db:migrate
To delete a table
- rails d model modelname