Migrations with Rails

  • by

Database Migrations

  • Create a migration: rails g migration yourTitle
  • Instruct to happen: add content to the file created for the migration
  • Run the migration: rails db:migrate

refs:
https://stackoverflow.com/questions/1992019/rails-how-can-i-rename-a-database-column-in-a-ruby-on-rails-migration#1992045

Leave a Reply

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