Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A table format makes this section easier to read

  • Loading branch information...
commit 6589359ed1bdb2906a09eed84f4c6271baa9bbad 1 parent e9b3b9e
@jasonnoble jasonnoble authored
Showing with 11 additions and 7 deletions.
  1. +11 −7 railties/guides/source/migrations.textile
View
18 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
Please sign in to comment.
Something went wrong with that request. Please try again.