revert_db_migration

Function revert_db_migration 

Source
pub fn revert_db_migration(
    conn: &mut Connection,
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
Expand description

Revert all pending database migrations.

§Arguments

  • conn - A mutable reference to a Connection object.

§Errors

  • If there is an error while connecting to the database.
  • If there is an error while reverting the database migrations.