docs: fix limit text length code (#13752)
This commit is contained in:
@@ -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