diff --git a/sea-orm-macros/src/derives/attributes.rs b/sea-orm-macros/src/derives/attributes.rs index bf04c977..070f98ac 100644 --- a/sea-orm-macros/src/derives/attributes.rs +++ b/sea-orm-macros/src/derives/attributes.rs @@ -14,6 +14,7 @@ pub mod derive_attr { pub table_name: Option, pub comment: Option, pub table_iden: Option<()>, + pub rename_all: Option, } } diff --git a/sea-orm-macros/tests/derive_entity_model_column_name_test.rs b/sea-orm-macros/tests/derive_entity_model_column_name_test.rs index 639dcc8c..989a8bdc 100644 --- a/sea-orm-macros/tests/derive_entity_model_column_name_test.rs +++ b/sea-orm-macros/tests/derive_entity_model_column_name_test.rs @@ -4,8 +4,7 @@ use sea_orm::Iterable; use sea_orm_macros::DeriveEntityModel; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] -#[sea_orm(table_name = "user")] -#[sea_orm(rename_all = "camelCase")] +#[sea_orm(table_name = "user", rename_all = "camelCase")] pub struct Model { #[sea_orm(primary_key)] id: i32,