Skip to content

struct Athena::ORM::Migrations::Metadata::AvailableMigration
inherits Struct #

A migration that can be executed, as provided by AORM::Migrations::MigrationsRepository.

Constructors#

.new(version : AORM::Migrations::Version, migration_class : AORM::Migrations::AbstractMigration.class)#

View source

Methods#

#migration_class : AORM::Migrations::AbstractMigration.class#

Returns the type of the migration. A new instance of it is created each time the migration is executed.

View source

#version : AORM::Migrations::Version#

Returns the version of the migration.

View source