Add password:digest information to scaffold generator help text [ci skip]

This commit is contained in:
noinkling 2014-07-25 15:55:55 +12:00 committed by noinkling
parent 3f4e97f807
commit 2a7fcc8c9b

@ -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'.