On Fri, Jun 6, 2008 at 5:47 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote:
> I assume you ran the migration by running rake db:migrate.

He said as much in his message.

> But you can also use rake db:test:prepare to copy the schema of the
> development environment from the development database to the test database.

He said he ran rake test:units to get his test db up to date, which
would have fired db:test:prepare via prereq.

Lionel, just to run the whole thing cleanly, can you try doing rake
db:drop db:create db:migrate db:test:prepare and then check schema.rb
to see if it still wants to create an integer column even though your
migration creates a decimal column?

When you said everything was ok when you specified the precision and
scale in the migration, were you specifying :precision => 10, :scale
=> 0?

Out of curiosity, (and I know it's the default, but) why would one
want a decimal column with a scale of zero?
-hume.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to