class Athena::ORM::Migrations::Metadata::ExecutedMigrationsList
inherits Reference
#
The executed migrations, in the order they were executed.
Constructors#
Methods#
#first(offset : Int32 = 0) : AORM::Migrations::Metadata::ExecutedMigration#
Returns the migration at offset from the start of the list.
Raises AORM::Migrations::Exception::NoMigrationsFoundWithCriteria if there isn't one.
#has_migration?(version : AORM::Migrations::Version) : Bool#
Returns true if the list contains a migration with the provided version.
#items : Array(AORM::Migrations::Metadata::ExecutedMigration)#
Returns the migrations in the list.
#last(offset : Int32 = 0) : AORM::Migrations::Metadata::ExecutedMigration#
Returns the last migration of the list, or the one offset before it when offset is negative.
Raises AORM::Migrations::Exception::NoMigrationsFoundWithCriteria if there isn't one.
#migration(version : AORM::Migrations::Version) : AORM::Migrations::Metadata::ExecutedMigration#
Returns the migration with the provided version.
Raises AORM::Migrations::Exception::MigrationNotExecuted if the list doesn't contain one.
#unavailable_subset(available_migrations : AORM::Migrations::Metadata::AvailableMigrationsList) : self#
Returns the migrations of this list that aren't in available_migrations, such as ones whose type was removed.