enum Clear::Migration::Direction

Defined in:

clear/migration/direction.cr

Enum Members

Up = 0
Down = 1

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? #

Return true whether the migration is a upstream


[View source]