Trait diesel::migration::Migration[][src]

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

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

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

Get the migration version

Apply this migration

Revert this migration

Get the migration file path

Implementations on Foreign Types

impl Migration for Box<Migration>
[src]

Implementors