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 188
    188:     def initialize
    189:       @actions = []
    190:     end

### Public Instance methods

reverse(&block)

[Source]

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

[Validate]