I have a collumn in my model which is a :decimal, :precision-
10, :scale=>2 It needs to hold numbers
from 0 to 4294967295.
This is the output from inet_aton(‘xxx.xxx.xxx.xxx’) in mysql. I NEED
to have an unsigned integer or else it MUST be big int for other, less
The development migrations work great. The correct table is built and
the number range is fine.
However, if I try to use the test feature built into rails projects,
it creates a table in the name_test database with the :decimal column
turned into an :integer(10). Of course, the fixtures will not load
and I am hooped.
No one seems to have run across this? I even emailed Dave T. of
‘Agile Web D. with Rails: Second Edition, 2nd Edition’ fame.
He said he uses :decimal columns all the time and never has any
Maybe no one has tried to put a number like 2190349144 into a test
Is there a fix for this?