We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e2447 commit 44a6db5Copy full SHA for 44a6db5
awto-macros/src/proc_macros/schema/database_table.rs
@@ -112,7 +112,8 @@ impl DatabaseTableModel {
112
"type is not suppoerted",
113
));
114
};
115
- let db_type_is_text = ty.to_string().ends_with(":: Text");
+ let ty_string = ty.to_string();
116
+ let db_type_is_text = ty_string.ends_with("::Text") || ty_string.ends_with(":: Text");
117
if let Some(max_len) = &field.attrs.max_len {
118
if !db_type_is_text {
119
return Err(syn::Error::new(
0 commit comments