aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authornoinkling <malkey@server.fake>2014-07-25 15:55:55 +1200
committernoinkling <noinkling@users.noreply.github.com>2014-07-25 16:42:01 +1200
commit2a7fcc8c9b2e7062fb6a726e0290561a4368b446 (patch)
tree19a784b9176f379ba4a19b8465393d2f5447073a /railties
parent3f4e97f807eb475ac8c311e5baf138249a8a1ab2 (diff)
downloadrails-2a7fcc8c9b2e7062fb6a726e0290561a4368b446.tar.gz
rails-2a7fcc8c9b2e7062fb6a726e0290561a4368b446.tar.bz2
rails-2a7fcc8c9b2e7062fb6a726e0290561a4368b446.zip
Add password:digest information to scaffold generator help text [ci skip]
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/scaffold/USAGE6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold/USAGE b/railties/lib/rails/generators/rails/scaffold/USAGE
index 4a3eb2c7c7..144267cd52 100644
--- a/railties/lib/rails/generators/rails/scaffold/USAGE
+++ b/railties/lib/rails/generators/rails/scaffold/USAGE
@@ -9,11 +9,15 @@ Description:
Attributes are field arguments specifying the model's attributes. You can
optionally pass the type and an index to each field. For instance:
- "title body:text tracking_id:integer:uniq" will generate a title field of
+ 'title body:text tracking_id:integer:uniq' will generate a title field of
string type, a body with text type and a tracking_id as an integer with an
unique index. "index" could also be given instead of "uniq" if one desires
a non unique index.
+ As a special case, passing 'password:digest' will generate a password_digest
+ field and configure your generated model, controller, views, and test suite
+ for use with ActiveModel has_secure_password.
+
Timestamps are added by default, so you don't have to specify them by hand
as 'created_at:datetime updated_at:datetime'.