问题 I am using Rails 3.2.3, and MySQL for my database I have created a model affiliate_payment.rb, with a column :amount , initially with datatype float . I tried to change this to a decimal with the following migration: class ChangeAffiliateIdAmountToDecimal < ActiveRecord::Migration def up change_column :affiliate_payments, :amount, :decimal end def down change_column :affiliate_payments, :amount, :float end end Ran rake db:migrate ... But when I check the column type to confirm, I find that