This commit is contained in:
Chris Tsang 2022-05-15 10:35:06 +08:00
parent 7d3258429b
commit 28e53601c0

View File

@ -24,7 +24,7 @@ pub trait MigrationTrait: MigrationName + Send + Sync {
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr>;
/// Define actions to perform when rolling back the migration
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
Err(DbErr::Migration("We Don't Do That Here"))
async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> {
Err(DbErr::Migration(format!("We Don't Do That Here")))
}
}