Trait schemamama::Migration [] [src]

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

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

fn version(&self) -> Version

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

fn description(&self) -> &'static str

A message describing the effects of this migration.

Implementors