class RenameTypeToSomethingBetter < ActiveRecord::Migration[5.0]
  def change
    rename_column :accounts,     :type, :account_stype
    rename_column :transactions, :type, :transaction_type
  end
end

Rename type to something else
Rename type to something else
