Useful rails commands

  • by


rails db:migrate
bundle install
bundle update
rails g scaffold 'names' title:text comment:string
rails generate migration Add****ToTable ****
rails generate migration AddNameToUsers name
rails console

Refs:

https://riptutorial.com/ruby-on-rails/example/3489/add-a-new-column-to-a-table

Leave a Reply

Your email address will not be published. Required fields are marked *