Struct schemer::Migrator [] [src]

pub struct Migrator<T: Adapter> { /* fields omitted */ }

Primary schemer type for defining and applying migrations.

Methods

impl<T: Adapter> Migrator<T>
[src]

[src]

Create a Migrator using the given Adapter.

[src]

Register a migration into the dependency graph.

[src]

Apply migrations as necessary to so that the specified migration is applied (inclusive).

If to is None, apply all registered migrations.

[src]

Revert migrations as necessary so that no migrations dependent on the specified migration are applied. If the specified migration was already applied, it will still be applied.

If to is None, revert all applied migrations.