migration with decimal problem (mysql)

Hi,

In the following migration I am trying to create a decimal column called stars. After rake migrate you can see that the field does not come out right in mysql. The decimal column has no decimal part. Does anyone know what I am doing wrong or should be doing?

create_table :areas do |t|   t.column :name, :string   t.column :stars, :decimal, :precision=>4, :scale=>3 end

produces

I’d guess you’re not on edge Rails.

Dave

From

it looks like migrations allow a :float type, and don't allow you to set precision or scale options. I'd try changing :decimal to :float and leaving in :precision and :scale to see what happens