aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails
diff options
context:
space:
mode:
authorFlorent Guilleux <florent2@gmail.com>2012-12-01 13:20:39 -0500
committerFlorent Guilleux <florent2@gmail.com>2012-12-01 13:20:39 -0500
commit90c887fa7d0c454b7533e208daefc342dea4d5f3 (patch)
tree330d9fd049b3fbbba80dbed5dbe0620d972d06d2 /railties/lib/rails/generators/rails
parent5ff59704f68d284381606a1b76e4ffcfd73b2cfa (diff)
downloadrails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.gz
rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.tar.bz2
rails-90c887fa7d0c454b7533e208daefc342dea4d5f3.zip
Remove trailing whitespaces
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index e29e19490e..9076992a8c 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -21,7 +21,7 @@ Description:
Available field types:
- Just after the field name you can specify a type like text or boolean.
+ Just after the field name you can specify a type like text or boolean.
It will generate the column with the associated SQL type. For instance:
`rails generate model post title:string body:text`
@@ -57,16 +57,16 @@ Available field types:
limit Set the maximum size of the field giving a number between curly braces
default Set a default value for the field
- precision Defines the precision for the decimal fields
+ precision Defines the precision for the decimal fields
scale Defines the scale for the decimal fields
- uniq Defines the field values as unique
+ uniq Defines the field values as unique
index Will add an index on the field
Examples:
`rails generate model user pseudo:string{30}`
`rails generate model user pseudo:string:uniq`
-
+
Examples:
`rails generate model account`