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