rails commands
Common Ruby and Ruby on Rails Commands for Local Development
Running a Rails Server
rails server
Generating a New Rails Project
rails new my_project
Generating a Scaffold
rails generate scaffold Post title:string body:text
Running Migrations
rails db:migrate
Rolling Back Migrations
rails db:rollback
Starting the Rails Console
rails console
Installing Gems
bundle install
Updating Gems
bundle update
Running Tests
rails test
Precompiling Assets
rails assets:precompile
Happy coding!