puts

puts(text="") Instance Public methods

reversible

reversible() Instance Public methods Used to specify an operation that can be run in one direction or another. Call the methods up and down of the yielded object to run a block only in one given direction. The whole block will be called in the right order within the migration. In the following example, the looping on users will always be done when the three columns 'first_name', 'last_name' and 'full_name' exist, even when migrating down: class SplitNameMigration < ActiveRecord:

revert

revert(*migration_classes) Instance Public methods Reverses the migration commands for the given block and the given migrations. The following migration will remove the table 'horses' and create the table 'apples' on the way up, and the reverse on the way down. class FixTLMigration < ActiveRecord::Migration def change revert do create_table(:horses) do |t| t.text :content t.datetime :remind_at end end create_table(:apples) do |t| t

reverting?

reverting?() Instance Public methods

run

run(*migration_classes) Instance Public methods Runs the given migration classes. Last argument can specify options: :direction (default is :up) :revert (default is false)

say

say(message, subitem=false) Instance Public methods

say_with_time

say_with_time(message) Instance Public methods

suppress_messages

suppress_messages() Instance Public methods

table_name_options

table_name_options(config = ActiveRecord::Base) Instance Public methods

up

up() Instance Public methods