Actually, should throw an error by default

This commit is contained in:
Chris Tsang 2022-05-15 10:33:21 +08:00
parent 5a19f2f3e0
commit 7d3258429b

View File

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