Rails 5: Change Database Columns
See the original posting on DZone Python
While working on a Rails application, we all have had to change the database column in some way. You can change the column name and the column type, as well as changing the column with the type conversion.
Changing the Column Name
Before we can change a column, we have to create it. Let’s start with creating a model for profiles.