diff options
author | Jason Noble <perlwizard@gmail.com> | 2011-12-03 19:22:55 -0700 |
---|---|---|
committer | Jason Noble <perlwizard@gmail.com> | 2011-12-03 19:31:44 -0700 |
commit | 6589359ed1bdb2906a09eed84f4c6271baa9bbad (patch) | |
tree | 378c7683b64e9a1ec353f16e05c214ad7d2c1ccd /railties | |
parent | e9b3b9e5d82d69cf15bd9ca2d4ecad348a76d2e4 (diff) | |
download | rails-6589359ed1bdb2906a09eed84f4c6271baa9bbad.tar.gz rails-6589359ed1bdb2906a09eed84f4c6271baa9bbad.tar.bz2 rails-6589359ed1bdb2906a09eed84f4c6271baa9bbad.zip |
A table format makes this section easier to read
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/migrations.textile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/railties/guides/source/migrations.textile b/railties/guides/source/migrations.textile index 0eebe742c9..4cb95d9c4d 100644 --- a/railties/guides/source/migrations.textile +++ b/railties/guides/source/migrations.textile @@ -622,13 +622,17 @@ A migration creating a table and adding an index might produce output like this == CreateProducts: migrated (0.0028s) ======================================== </shell> -Several methods are provided that allow you to control all this: - -* +suppress_messages+ takes a block as an argument and suppresses any output -* generated by the block. +say+ takes a message argument and outputs it as is. -* A second boolean argument can be passed to specify whether to indent or not. -* +say_with_time+ outputs text along with how long it took to run its block. If -* the block returns an integer it assumes it is the number of rows affected. +Several methods are provided in migrations that allow you to control all this: + +|_.Method |_.Purpose| +|suppress_messages |takes a block as an argument and suppresses any output + generated by the block.| +|say |Takes a message argument and outputs it as is. A second + boolean argument can be passed to specify whether to + indent or not.| +|say_with_time |Outputs text along with how long it took to run its + block. If the block returns an integer it assumes it + is the number of rows affected.| For example, this migration |