Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failing test from [7619bcf]

  • Loading branch information...
commit b04bce28ff475a93311304069085b0b99d1dbac4 1 parent 7619bcf
@sikachu sikachu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/generated_attribute.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.