[code language=”ruby”]
class ChangePriceTypeInSales < ActiveRecord::Migration
def change
change_column :sales, :price, ‘float USING CAST(price AS float)’
end
end
[/code]