Class | Sequel::MigrationAlterTableReverser
In: | lib/sequel/extensions/migration.rb
Parent: | Sequel::BasicObject

Handles reversing an alter_table block in a reversible migration.

### Methods

new reverse

### Public Class methods

new()

[Source]

         # File lib/sequel/extensions/migration.rb, line 187
    187:     def initialize
    188:       @actions = []
    189:     end

### Public Instance methods

reverse(&block)

[Source]

         # File lib/sequel/extensions/migration.rb, line 191
    191:     def reverse(&block)
    192:       instance_eval(&block)
    193:       actions = @actions.reverse
    194:       Proc.new{actions.each{|a| send(*a)}}
    195:     end

[Validate]