From 6589359ed1bdb2906a09eed84f4c6271baa9bbad Mon Sep 17 00:00:00 2001 From: Jason Noble Date: Sat, 3 Dec 2011 19:22:55 -0700 Subject: A table format makes this section easier to read --- railties/guides/source/migrations.textile | 18 +++++++++++------- 1 file 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) ======================================== -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 -- cgit v1.2.3