Skip to content
Browse files

Updated index definition

  • Loading branch information...
1 parent ef8e8dd commit f021a3c5800602e3835c44b09ce62fd628dcd640 @wjohnald committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 index.js
View
5 index.js
@@ -6,9 +6,8 @@ module.exports = function(name, schema, options) {
schema.add({
slug: {
type: String,
- index: {
- unique: true
- }
+ index: true,
+ unique: true
}
});

0 comments on commit f021a3c

Please sign in to comment.
Something went wrong with that request. Please try again.