Rename A Database Column with Ruby on Rails Active Record Migrations

Will Johnson
InstructorWill Johnson

Share this video with your friends

Send Tweet

If you make a mistake when naming your database column, and have data that you want to keep unchanged. You can use the change method with the rename_column definition in your migrations files to update a single column name in your database.