struct Clear::Migration::Direction

Defined in:

clear/migration/direction.cr

Constant Summary

DOWN = Direction.new(false)
UP = Direction.new(true)

Instance Method Summary

Instance Method Detail

def down(&) #

Run the block given in parameter if the direction is a rollback


[View source]
def down? #

Return true whether the migration is a rollback


[View source]
def up(&) #

Run the block given in parameter if the direction is a upstream


[View source]
def up? : Bool #

Return true whether the migration is a upstream


[View source]