diff options
author | Roberto Miranda <rjmaltamar@gmail.com> | 2015-01-16 18:33:23 -0500 |
---|---|---|
committer | Roberto Miranda <rjmaltamar@gmail.com> | 2015-01-16 18:33:23 -0500 |
commit | 91e7784694eb76e890003ee31cebf8aa64b87075 (patch) | |
tree | de9bf333a77d2651a00989a4713f66433d4f286a /railties | |
parent | 0d019afcd538b9ecd425471b6db6d624e12897b3 (diff) | |
download | rails-91e7784694eb76e890003ee31cebf8aa64b87075.tar.gz rails-91e7784694eb76e890003ee31cebf8aa64b87075.tar.bz2 rails-91e7784694eb76e890003ee31cebf8aa64b87075.zip |
Update Molde Generator Usage
Including has_secure_token generator
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/model/USAGE | 5 |
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` |