diff --git a/README.md b/README.md index 5002ad7..d719634 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,9 @@ function Product(s) { // Validations // Pass the validation method name as a string. this.validates("cheap"); + + // Indices + this.index(["name", "isPublished"], { indexName: "NameIsPublished" }); } // This will be called before a Product is created diff --git a/package.json b/package.json index 8248adb..becef91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sequenice", - "version": "0.0.2", + "version": "0.0.3", "description": "A nice model wrapper for `sequelize`", "main": "index.js", "directories": {