Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed May 28, 2024
1 parent 3e45ac4 commit 9152d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions sea-orm-macros/src/derives/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod derive_attr {
pub table_name: Option<syn::Lit>,
pub comment: Option<syn::Lit>,
pub table_iden: Option<()>,
pub rename_all: Option<syn::Lit>,
}
}

Expand Down
3 changes: 1 addition & 2 deletions sea-orm-macros/tests/derive_entity_model_column_name_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9152d8c

Please sign in to comment.