pub trait Migration {
fn id(&self) -> Uuid;
fn dependencies(&self) -> HashSet<Uuid>;
fn description(&self) -> &'static str;
}
Expand description
Metadata for defining the identity and dependence relations of migrations. Specific adapters require additional traits for actual application and reversion of migrations.
Required Methods
sourcefn dependencies(&self) -> HashSet<Uuid>
fn dependencies(&self) -> HashSet<Uuid>
Set of IDs of all direct dependencies of this migration.
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
User-targeted description of this migration.