enum

Lustra::Migration::Direction

Inherits Enum < Comparable < Value < Object

Constants

Up = 0
Down = 1

Instance methods

down

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

Source
down?

Return true whether the migration is a rollback

Source
up

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

Source
up?

Return true whether the migration is a upstream

Source