Trait diesel::migration::MigrationName
source · pub trait MigrationName: Display {
fn version(&self) -> MigrationVersion<'_>;
}
Expand description
Represents the name of a migration
Users should threat this as impl Display
type,
for implementors of custom migration types
this opens the possibility to roll out their own versioning
schema.
Required Methods§
sourcefn version(&self) -> MigrationVersion<'_>
fn version(&self) -> MigrationVersion<'_>
The version corresponding to the current migration name