aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-01-17 13:57:54 +0100
committerYves Senn <yves.senn@gmail.com>2015-01-17 13:59:16 +0100
commit0862da367c5a83020bea084cbd1b2aaba070e840 (patch)
tree08eb8f01161c878ca1dc886b77ddbeafe3aafc3e /railties
parent0c24d352c9b31165a8d72338326f248218b5101f (diff)
parent91e7784694eb76e890003ee31cebf8aa64b87075 (diff)
downloadrails-0862da367c5a83020bea084cbd1b2aaba070e840.tar.gz
rails-0862da367c5a83020bea084cbd1b2aaba070e840.tar.bz2
rails-0862da367c5a83020bea084cbd1b2aaba070e840.zip
Merge pull request #18558 from robertomiranda/patch-3 [ci skip]
Update Molde Generator Usage
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/model/USAGE8
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/model/USAGE b/railties/lib/rails/generators/rails/model/USAGE
index 8c3b63c3b4..e75d5dc4ba 100644
--- a/railties/lib/rails/generators/rails/model/USAGE
+++ b/railties/lib/rails/generators/rails/model/USAGE
@@ -79,10 +79,15 @@ 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 can specify `auth_token:token`:
+
+ `rails generate model user auth_token:token`
+
Examples:
`rails generate model account`
@@ -106,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
-