From a8e37aa65e1336323496a56c0c50f12cda86e1a8 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 18 Feb 2023 12:47:32 +0800 Subject: [PATCH] Fix DeriveActiveEnum #1478 --- sea-orm-macros/src/derives/active_enum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea-orm-macros/src/derives/active_enum.rs b/sea-orm-macros/src/derives/active_enum.rs index 21f8b7ea..74e8c4ab 100644 --- a/sea-orm-macros/src/derives/active_enum.rs +++ b/sea-orm-macros/src/derives/active_enum.rs @@ -338,7 +338,7 @@ impl ActiveEnum { } fn db_type() -> sea_orm::ColumnDef { - sea_orm::ColumnType::#db_type.def() + sea_orm::prelude::ColumnTypeTrait::def(sea_orm::ColumnType::#db_type) } }