This project is archived and is in readonly mode.
Changeset [532219fd091837a9312a301c74e0fbf06abab3a8] by Giles Alexander
Revision 532219fd091837a9312a301c74e0fbf06abab3a8,
committed 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 michael@koziarski.com [#2741 state:committed] http://github.com/rails/rails/co...
3 changed files
-
M
activerecord/lib/active_record/schema_dumper.rb -
M
activerecord/test/cases/schema_dumper_test.rb -
M
activerecord/test/schema/schema.rb