You should use decimal instead of float. t.column :name, :decimal, :precision => 10, :scale => 2
This will give you numbers as 00000000.00, for example (10 digits, 2 digits right of decimal point). Regards, Jorge Corona. On Sep 10, 6:35 pm, "Bill Walton" <[EMAIL PROTECTED]> wrote: > Is it possible to specify the length and number of decimal places for a float > in a migration? I using MySQL and can do it through the GUI client, but > can't Google up anything on doing it in a migration. > > Thanks, > Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

