class Athena::ORM::Migrations::Metadata::MigrationPlan
inherits Reference
#
A migration planned to be executed in a given direction.
Constructors#
.new(version : AORM::Migrations::Version, migration_class : AORM::Migrations::AbstractMigration.class, direction : AORM::Migrations::Version::Direction)#
Methods#
#direction : AORM::Migrations::Version::Direction#
Returns whether the migration is to be applied or reverted.
#mark_as_executed(result : AORM::Migrations::Version::ExecutionResult) : Nil#
Sets the result of executing the migration.
Raises AORM::Migrations::Exception::PlanAlreadyExecuted if it was already set.
#migration_class : AORM::Migrations::AbstractMigration.class#
Returns the type of the migration.
#result : AORM::Migrations::Version::ExecutionResult | ::Nil#
Returns the result of executing the migration, or nil if it hasn't been executed yet.