class Athena::ORM::Migrations::Metadata::AvailableMigrationsSet
inherits Reference
#
The unordered set of available migrations, as provided by AORM::Migrations::MigrationsRepository#migrations.
Constructors#
Methods#
#has_migration?(version : AORM::Migrations::Version) : Bool#
Returns true if the set contains a migration with the provided version.
#items : Array(AORM::Migrations::Metadata::AvailableMigration)#
Returns the migrations in the set.
#migration(version : AORM::Migrations::Version) : AORM::Migrations::Metadata::AvailableMigration#
Returns the migration with the provided version.
Raises AORM::Migrations::Exception::MigrationNotAvailable if the set doesn't contain one.