Trait schemamama::Migration [] [src]

pub trait Migration {
    fn version(&self) -> Version;
fn description(&self) -> String; }

All migrations will implement this trait, and a migration trait specific to the chosen adapter. This trait defines the metadata for tracking migration sequence and for human reference.

Required Methods

An ordered (but not necessarily sequential), unique identifier for this migration. Registered migrations will be applied in ascending order by version.

A message describing the effects of this migration.

Implementors