aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE9
1 files changed, 4 insertions, 5 deletions
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index 23809f897f..e75d5dc4ba 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -79,14 +79,14 @@ Available field types:
`rails generate model product supplier:references{polymorphic}:index`
If you require a `password_digest` string column for use with
- has_secure_password, you should specify `password:digest`:
+ has_secure_password, you can 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`:
+ has_secure_token, you can specify `auth_token:token`:
- `rails generate model user token:token`
+ `rails generate model user auth_token:token`
Examples:
`rails generate model account`
@@ -111,4 +111,3 @@ Examples:
Test: test/models/admin/account_test.rb
Fixtures: test/fixtures/admin/accounts.yml
Migration: db/migrate/XXX_create_admin_accounts.rb
-