From 7d3258429b6d722fbf8d1933527a282f806a725a Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 15 May 2022 10:33:21 +0800 Subject: [PATCH] Actually, should throw an error by default --- sea-orm-migration/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-migration/src/lib.rs b/sea-orm-migration/src/lib.rs index ab4f8eb3..4304e8c9 100644 --- a/sea-orm-migration/src/lib.rs +++ b/sea-orm-migration/src/lib.rs @@ -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")) } }