fix: use fully qualified syntax when call fn name in trait ActiveEnum. (#2460)

This commit is contained in:
799189288 2024-12-26 19:33:51 +08:00 committed by GitHub
parent 13a3de6633
commit bead32a0d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ impl ActiveEnum {
"Enum" => {
db_type = Ok(quote! {
Enum {
name: Self::name(),
name: <Self as sea_orm::ActiveEnum>::name(),
variants: Self::iden_values(),
}
})