Trait schemer::Migration
[−]
[src]
pub trait Migration { fn id(&self) -> Uuid; fn dependencies(&self) -> HashSet<Uuid>; fn description(&self) -> &'static str; }
Metadata for defining the identity and dependence relations of migrations. Specific adapters require additional traits for actual application and reversion of migrations.
Required Methods
fn id(&self) -> Uuid
Unique identifier for this migration.
fn dependencies(&self) -> HashSet<Uuid>
Set of IDs of all direct dependencies of this migration.
fn description(&self) -> &'static str
User-targeted description of this migration.
Implementors
impl Migration for TestMigration