Skip to content

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.

View source

#items : Array(AORM::Migrations::Metadata::AvailableMigration)#

Returns the migrations in the set.

View source

#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.

View source

#size : Int32#

Returns the number of migrations in the set.

View source