Function diesel::migrations::revert_latest_migration [] [src]

pub fn revert_latest_migration<Conn>(conn: &Conn)
                                     -> Result<String, RunMigrationsError> where Conn: MigrationConnection

Reverts the last migration that was run. Returns the version that was reverted. Returns an Err if no migrations have ever been run.

See the module level documentation for information on how migrations should be structured, and where Diesel will look for them by default.