aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/command_line.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-09 11:45:36 +1000
committerRyan Bigg <radarlistener@gmail.com>2010-12-09 17:54:38 +1000
commite4456b6f03318147f119271770a14e0edd58a4a8 (patch)
treebbbf2e30796e18a8d86098c0b33550b7bb5796b1 /railties/guides/source/command_line.textile
parent9560f50920f7f425b2e74e8db10590a382679ed5 (diff)
downloadrails-e4456b6f03318147f119271770a14e0edd58a4a8.tar.gz
rails-e4456b6f03318147f119271770a14e0edd58a4a8.tar.bz2
rails-e4456b6f03318147f119271770a14e0edd58a4a8.zip
Add note which links to documentation regarding the types of columns available.
Diffstat (limited to 'railties/guides/source/command_line.textile')
-rw-r--r--railties/guides/source/command_line.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/command_line.textile b/railties/guides/source/command_line.textile
index acd105c622..11ce3a5003 100644
--- a/railties/guides/source/command_line.textile
+++ b/railties/guides/source/command_line.textile
@@ -197,6 +197,8 @@ Examples:
Creates a Post model with a string title, text body, and published flag.
</shell>
+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.
+
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.
We will set up a simple resource called "HighScore" that will keep track of our highest score on video games we play.