struct Clear::Migration::Direction
- Clear::Migration::Direction
- Struct
- Value
- Object
Defined in:
clear/migration/direction.crConstant Summary
-
DOWN =
Direction.new(false)
-
UP =
Direction.new(true)
Instance Method Summary
-
#down(&)
Run the block given in parameter if the direction is a rollback
-
#down?
Return true whether the migration is a rollback
-
#up(&)
Run the block given in parameter if the direction is a upstream
-
#up? : Bool
Return true whether the migration is a upstream