Skip to content

Commit 9152d8c

Browse files
committed
Refactor
1 parent 3e45ac4 commit 9152d8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sea-orm-macros/src/derives/attributes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod derive_attr {
1414
pub table_name: Option<syn::Lit>,
1515
pub comment: Option<syn::Lit>,
1616
pub table_iden: Option<()>,
17+
pub rename_all: Option<syn::Lit>,
1718
}
1819
}
1920

sea-orm-macros/tests/derive_entity_model_column_name_test.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ use sea_orm::Iterable;
44
use sea_orm_macros::DeriveEntityModel;
55

66
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
7-
#[sea_orm(table_name = "user")]
8-
#[sea_orm(rename_all = "camelCase")]
7+
#[sea_orm(table_name = "user", rename_all = "camelCase")]
98
pub struct Model {
109
#[sea_orm(primary_key)]
1110
id: i32,

0 commit comments

Comments
 (0)