diff --git a/sea-orm-macros/src/derives/active_enum.rs b/sea-orm-macros/src/derives/active_enum.rs index 2a5e42b7b..ff48f3911 100644 --- a/sea-orm-macros/src/derives/active_enum.rs +++ b/sea-orm-macros/src/derives/active_enum.rs @@ -59,7 +59,7 @@ impl ActiveEnum { "Enum" => { db_type = Ok(quote! { Enum { - name: Self::name(), + name: ::name(), variants: Self::iden_values(), } })