This project is archived and is in readonly mode.

Changeset [532219fd091837a9312a301c74e0fbf06abab3a8] by Giles Alexander

June 1st, 2009 @ 02:40 AM

Schema dumper now records scale 0 decimal columns as decimal not integer.

The schema dumper would dump out any decimal or numeric column that had a zero scale as an integer column. This will cause problems for very large precision columns on some DBMSs, particularly PostgreSQL. It also looks strange to see your column change type after moving through schema.rb.

Signed-off-by: Michael Koziarski [#2741 state:committed]

Committed by Giles Alexander

  • M activerecord/lib/active_record/schema_dumper.rb
  • M activerecord/test/cases/schema_dumper_test.rb
  • M activerecord/test/schema/schema.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>