ruby on rails active record change column name code example
Example 1: change column rails example
def change
change_column(:table_name, :column_name, :new_type)
end
Example 2: rename column in db rails
rails generate migration rename_title_to_name_in_tasks