Hobo Migration Generator not detecting scale and precision change
Reported by Tim Griffin | January 25th, 2012 @ 03:48 PM
Using Hobo 1.3.0.RC4, I have noticed that if I change
this
old_instrument_no :float, :default => 0
to this
old_instrument_no :float, :default => 0, :precision => 9, :scale => 3
the Hobo migration generator doesn't detect any change.
Tim
Comments and changes to this ticket
-
Matt Jones January 28th, 2012 @ 02:10 AM
What DB is this on? At least on MySQL and Postgres, any value for
:precision
between 0 and 23 will give the exact same type (4-byte float) in the database. -
Tim Griffin January 30th, 2012 @ 03:04 AM
Sorry, Matt, yes this was against MySQL. I wasn't aware of the non-effect of :precision against a float in MySQL. Does scale also have no effect? Is the Hobo migration generator tuned with that knowledge? If so, feel free to close the ticket.
T
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป