module

Micrate

Constants

Log = ::Log.for(self)
VERSION = "0.10.0"

Class methods

connection_url=(connection_url)
Source
create(name, dir, time)
Source
db_dir
Source
dbversion(db)
Source
down(db)
Source
extract_dbversion(rows)

The most recent record for each migration specifies whether it has been applied or rolled back. The first version we find that has been applied is the current version.

Source
migration_plan(status : Hash(Migration, Time | Nil), current : Int, target : Int, direction)
Source
migration_plan(all_versions : Hash(Int, Bool), current : Int, target : Int, direction)
Source
migration_status(migrations : Array(Migration), db) : Hash(Migration, Time | Nil)
Source
migration_status(db) : Hash(Migration, Time | Nil)
Source
migrations_dir
Source
redo(db)
Source
up(db)
Source

Nested types