diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-07-13 01:18:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-13 01:18:12 -0700 |
commit | e1915e712d654838e4a734a6f9f0327494095c8e (patch) | |
tree | f69e539c3a9791fbe23139b0d2c01b49c7ed085d /guides/source | |
parent | 9be45aceba8db8a734d2d4b00ccabe0ada31d40b (diff) | |
parent | 5ae7fc5e400e3dc733083bf3bbd1d49abb485594 (diff) | |
download | rails-e1915e712d654838e4a734a6f9f0327494095c8e.tar.gz rails-e1915e712d654838e4a734a6f9f0327494095c8e.tar.bz2 rails-e1915e712d654838e4a734a6f9f0327494095c8e.zip |
Merge pull request #25748 from CodingItWrong/generator-field-types-link
Correct link for model generator field types
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/command_line.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index f766403228..42276bcb90 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -209,7 +209,7 @@ Description: Create rails files for model generator. ``` -NOTE: For a list of available field types, refer to the [API documentation](http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html#method-i-column) for the column method for the `TableDefinition` class. +NOTE: For a list of available field types for the `type` parameter, refer to the [API documentation](http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_column) for the add_column method for the `SchemaStatements` module. The `index` parameter generates a corresponding index for the column. But instead of generating a model directly (which we'll be doing later), let's set up a scaffold. A **scaffold** in Rails is a full set of model, database migration for that model, controller to manipulate it, views to view and manipulate the data, and a test suite for each of the above. |