edit column table ruby on rails code example
Example 1: edit column table ruby on rails
change_column :table, :column_name, :type, :whatever_here
Example 2: active record modify column name
rename_column :table, :old_column, :new_column
change_column :table, :column_name, :type, :whatever_here
rename_column :table, :old_column, :new_column