docs: fix limit text length code (#13752)
This commit is contained in:
1 parent
8642d41aac
commit
a5df43cde7
3 files changed
+48
-15
No files matched your search
@@ -76,7 +76,10 @@ const Post = model.define("post", {
|
||||
// ...
|
||||
})
|
||||
.checks([
|
||||
(columns) => `${columns.name.length} <= 50`,
|
||||
{
|
||||
name: "limit_name_length",
|
||||
expression: (columns) => `LENGTH(${columns.name}) <= 50`,
|
||||
}
|
||||
])
|
||||
|
||||
export default Post
|
||||
|
||||
Reference in new issue
Block a user