Skip to content

class Athena::ORM::Migrations::Migrator
inherits Reference #

Executes the migrations of a plan, one after the other, see AORM::Migrations::Version::Executor.

Constructors#

Methods#

#migrate(migrations_plan : AORM::Migrations::Metadata::MigrationPlanList, configuration : AORM::Migrations::MigratorConfiguration) : Hash(AORM::Migrations::Version, Array(AORM::Migrations::Query))#

Executes the migrations of migrations_plan, and returns the SQL each executed, keyed by its version. Stops at the first migration that fails, re-raising what it raised.

View source