Permalink
Browse files

Merge pull request #12642 from ka8725/fix_usage_for_model_generators

Improve usage example for model generator decimal field
  • Loading branch information...
2 parents 03deb47 + b5973cf commit 3c3ffac0117a9a3ce4de1f84a7a3eb7a35d016a8 @rafaelfranca rafaelfranca committed Oct 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/model/USAGE
@@ -60,7 +60,7 @@ Available field types:
For decimal, two integers separated by a comma in curly braces will be used
for precision and scale:
- `rails generate model product price:decimal{10,2}`
+ `rails generate model product 'price:decimal{10,2}'`
You can add a `:uniq` or `:index` suffix for unique or standard indexes
respectively:

0 comments on commit 3c3ffac

Please sign in to comment.