[][src]Function migrations_internals::revert_latest_migration

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.