Methods

Class/Module Index [+]

Quicksearch

Sequel::MigrationAlterTableReverser

Handles reversing an alter_table block in a reversible migration.

Public Class Methods

new() click to toggle source
# File lib/sequel/extensions/migration.rb, line 224
def initialize
  @actions = []
end

Public Instance Methods

reverse(&block) click to toggle source
# File lib/sequel/extensions/migration.rb, line 228
def reverse(&block)
  instance_eval(&block)
  actions = @actions.reverse
  Proc.new{actions.each{|a| send(*a)}}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.