pub async fn revert_all(&mut self) -> Result<MigrationSummary, Error> {
        self.check_migrations().await?;

        if self.migrations.is_empty() {
            return Ok(MigrationSummary {
                new_version: None,
                old_version: None,
            });
        }

        self.revert(1).await
    }
/// Revert all applied migrations, if any.
///
/// # Errors
///
/// Uses [`Migrator::revert`], any errors will be propagated.
Revert all applied migrations, if any.
Revert all applied migrations if any .
pub async fn revert_all(&mut self) -> Result<MigrationSummary, Error> {
        self.check_migrations().await?;
        if self.migrations.is_empty() {
            return Ok(MigrationSummary {
                new_version: None,
                old_version: None,
            });
        }
        self.revert(1).await
    }
pub async fn revert_all ( & mut self ) -> Result < MigrationSummary , Error > { self . check_migrations ( ) . await ? ; if self . migrations . is_empty ( ) { return Ok ( MigrationSummary { new_version : None , old_version : None , } ) ; } self . revert ( 1 ) . await }
Revert all applied migrations, if any.
Revert all applied migrations if any .
&mut self
&mut self
errors
Uses [`Migrator::revert`], any errors will be propagated.
Uses [ ` Migrator :: revert ` ] any errors will be propagated .