class Marten::DB::Management::Migrations::Reader
- Marten::DB::Management::Migrations::Reader
- Reference
- Object
Overview
Represents a migrations reader.
The migration reader will process all migrations defined by the available apps and all the migrations that were already applied (ie. recorded) for the existing database in order to build a corresponding directed acyclic graph of migrations.
Defined in:
marten/db/management/migrations/reader.crConstructors
Instance Method Summary
- #applied_migrations : Hash(String, Marten::DB::Migration?)
-
#apps_with_migrations
Returns an array of apps that have migrations defined.
-
#get_migration(app_config : Apps::Config, migration_name : String) : Migration.class
Returns a migration class for a specific app config and migration name.
- #graph : Marten::DB::Management::Migrations::Graph
-
#latest_migration(app_config : Apps::Config) : Migration.class | Nil
Returns the latest migration class (if any) for a given app config.
- #replacements : Hash(String, Marten::DB::Migration)
Constructor Detail
Instance Method Detail
Returns a migration class for a specific app config and migration name.
Returns the latest migration class (if any) for a given app config.