BigDecimal: schema dumper formatting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4619 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
971e03f24e
commit
89011da0de
|
@ -89,7 +89,7 @@ if ActiveRecord::Base.connection.respond_to?(:tables)
|
|||
ActiveRecord::SchemaDumper.ignore_tables = [/^[^n]/]
|
||||
ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
|
||||
output = stream.string
|
||||
assert_match %r{:precision => 3,[[:space:]]+:scale => 2,[[:space:]]+:default => 0.278E1}, output
|
||||
assert_match %r{:precision => 3,[[:space:]]+:scale => 2,[[:space:]]+:default => 2.78}, output
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue