Skip to content
This repository
Browse code

A table format makes this section easier to read

  • Loading branch information...
commit 6589359ed1bdb2906a09eed84f4c6271baa9bbad 1 parent e9b3b9e
Jason Noble jasonnoble authored

Showing 1 changed file with 11 additions and 7 deletions. Show diff stats Hide diff stats

  1. +11 7 railties/guides/source/migrations.textile
18 railties/guides/source/migrations.textile
Source Rendered
@@ -622,13 +622,17 @@ A migration creating a table and adding an index might produce output like this
622 622 == CreateProducts: migrated (0.0028s) ========================================
623 623 </shell>
624 624
625   -Several methods are provided that allow you to control all this:
626   -
627   -* +suppress_messages+ takes a block as an argument and suppresses any output
628   -* generated by the block. +say+ takes a message argument and outputs it as is.
629   -* A second boolean argument can be passed to specify whether to indent or not.
630   -* +say_with_time+ outputs text along with how long it took to run its block. If
631   -* the block returns an integer it assumes it is the number of rows affected.
  625 +Several methods are provided in migrations that allow you to control all this:
  626 +
  627 +|_.Method |_.Purpose|
  628 +|suppress_messages |takes a block as an argument and suppresses any output
  629 + generated by the block.|
  630 +|say |Takes a message argument and outputs it as is. A second
  631 + boolean argument can be passed to specify whether to
  632 + indent or not.|
  633 +|say_with_time |Outputs text along with how long it took to run its
  634 + block. If the block returns an integer it assumes it
  635 + is the number of rows affected.|
632 636
633 637 For example, this migration
634 638

0 comments on commit 6589359

Please sign in to comment.
Something went wrong with that request. Please try again.