Trait diesel_migrations::Migration[][src]

pub trait Migration {
    fn version(&self) -> &str;
fn run(&self, conn: &dyn SimpleConnection) -> Result<(), RunMigrationsError>;
fn revert(
        &self,
        conn: &dyn SimpleConnection
    ) -> Result<(), RunMigrationsError>; fn file_path(&self) -> Option<&Path> { ... } }
Expand description

Represents a migration that interacts with diesel

Required methods

Get the migration version

Apply this migration

Revert this migration

Provided methods

Get the migration file path

Trait Implementations

Get the migration version

Apply this migration

Revert this migration

Get the migration file path

Implementations on Foreign Types

Implementors