pub trait MigrationName: Display {
// Required method
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