Skip to main content

revert

Function revert 

Source
pub async fn revert(
    pool: &PgPool,
    migrator: &Migrator,
    steps: u32,
) -> Result<(), MigrateError>
Expand description

Revert the newest steps migrations. Each needs a .down.sql file.

ยงErrors

Fails on a database error or a failed down migration.