aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
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`