Hotfix - doc test fail, Ignore fmt entity files under codegen/tests
This commit is contained in:
parent
bcd221a915
commit
b4abf15169
3
sea-orm-codegen/rustfmt.toml
Normal file
3
sea-orm-codegen/rustfmt.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ignore = [
|
||||||
|
"tests/entity/*.rs",
|
||||||
|
]
|
@ -15,7 +15,7 @@ impl EntityName for Entity {
|
|||||||
pub struct Model {
|
pub struct Model {
|
||||||
pub id: i32,
|
pub id: i32,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub cake_id: Option<i32>,
|
pub cake_id: Option<i32> ,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
|
||||||
|
@ -15,7 +15,7 @@ impl EntityName for Entity {
|
|||||||
pub struct Model {
|
pub struct Model {
|
||||||
pub id: i32,
|
pub id: i32,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub fruit_id: Option<i32>,
|
pub fruit_id: Option<i32> ,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user