update column name rails code example
Example 1: active record modify column name
rename_column :table, :old_column, :new_column
Example 2: rename column in db rails
rails generate migration rename_title_to_name_in_tasks
rename_column :table, :old_column, :new_column
rails generate migration rename_title_to_name_in_tasks