Permalink
Browse files

Merge pull request #4769 from sikachu/failing-test

Fix failing test from [7619bcf]
  • Loading branch information...
2 parents de16100 + b04bce2 commit c99eb232c2d85b18cca78f699895aff007e7aa85 @fxn fxn committed Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/generated_attribute.rb
@@ -33,7 +33,7 @@ def parse_type_and_options(type)
when /(string|text|binary|integer)\{(\d+)\}/
return $1, :limit => $2.to_i
when /decimal\{(\d+)[,.-](\d+)\}/
- return :decimal, :precision => $1.to_i, :scale => $3.to_i
+ return :decimal, :precision => $1.to_i, :scale => $2.to_i
else
return type, {}
end

0 comments on commit c99eb23

Please sign in to comment.