A table format makes this section easier to read

This commit is contained in:
Jason Noble 2011-12-03 19:22:55 -07:00
parent e9b3b9e5d8
commit 6589359ed1

@ -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:
Several methods are provided in migrations 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.
|_.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