aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRoberto Miranda <rjmaltamar@gmail.com>2015-01-16 18:33:23 -0500
committerRoberto Miranda <rjmaltamar@gmail.com>2015-01-16 18:33:23 -0500
commit91e7784694eb76e890003ee31cebf8aa64b87075 (patch)
treede9bf333a77d2651a00989a4713f66433d4f286a /railties
parent0d019afcd538b9ecd425471b6db6d624e12897b3 (diff)
downloadrails-91e7784694eb76e890003ee31cebf8aa64b87075.tar.gz
rails-91e7784694eb76e890003ee31cebf8aa64b87075.tar.bz2
rails-91e7784694eb76e890003ee31cebf8aa64b87075.zip
Update Molde Generator Usage
Including has_secure_token generator
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index 8c3b63c3b4..23809f897f 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -82,6 +82,11 @@ Available field types:
has_secure_password, you should specify `password:digest`:
`rails generate model user password:digest`
+
+ If you require a `token` string column for use with
+ has_secure_token, you should specify `token:token`:
+
+ `rails generate model user token:token`
Examples:
`rails generate model account`