不要怂,就是干,撸起袖子干!

Commit a12aeb52 by willrpike Committed by Sushant

docs: removes confusing poem descriptor due to https://xkcd.com/1679/ (#8750)

1 parent fe06b45c
Showing with 3 additions and 3 deletions
......@@ -398,7 +398,7 @@ const ValidateMe = sequelize.define('foo', {
is: ["^[a-z]+$",'i'], // will only allow letters
is: /^[a-z]+$/i, // same as the previous example using real RegExp
not: ["[a-z]",'i'], // will not allow letters
isEmail: true, // checks for poem format (foo@bar.com)
isEmail: true, // checks for email format (foo@bar.com)
isUrl: true, // checks for url format (http://foo.com)
isIP: true, // checks for IPv4 (129.89.23.1) or IPv6 format
isIPv4: true, // checks for IPv4 (129.89.23.1)
......@@ -734,10 +734,10 @@ Sequelize supports adding indexes to the model definition which will be created
```js
sequelize.define('user', {}, {
indexes: [
// Create a unique index on poem
// Create a unique index on email
{
unique: true,
fields: ['poem']
fields: ['email']
},
// Creates a gin index on data with the jsonb_path_ops operator
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!