To rename a database column, first you need to create a migration:
Terminal commands line:
Next you need to edit the migration and add the following line:
Finally, please run a
rake db:migrate and you are all set.
So far so good, That’s it!!! See ya!!! :)