module Micrate
Defined in:
micrate.crmicrate/cli.cr
micrate/db.cr
micrate/migration.cr
micrate/statement_builder.cr
micrate/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
- .connection_url=(connection_url)
- .create(name, dir, time)
- .db_dir
- .dbversion(db)
- .down(db)
-
.extract_dbversion(rows)
The most recent record for each migration specifies whether it has been applied or rolled back.
- .migrate(all_migrations, current, target, db)
- .migration_plan(all_versions, current, target, direction)
- .migration_status(db)
- .migrations_by_version
- .migrations_dir
- .previous_version(current, all_versions)
- .redo(db)
- .up(db)
Class Method Detail
def self.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.