Trait diesel::migrations::Migration [] [src]

pub trait Migration {
    fn version(&self) -> &str;
    fn run(&self, conn: &SimpleConnection) -> Result<(), RunMigrationsError>;
    fn revert(&self, conn: &SimpleConnection) -> Result<(), RunMigrationsError>;
}

Required Methods

Trait Implementations

impl<'a> Migration for &'a Migration
[src]

Implementors