test: add property index to support cloudant (#1750)

This commit is contained in:
Janny 2019-06-19 14:36:48 -04:00 committed by GitHub
parent d49774c590
commit 58b3c4f148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1554,7 +1554,7 @@ function setup(done) {
expirationDate: Date,
});
Post = db.define('Post', {
title: String,
title: {type: String, index: true},
});
Passport.belongsTo('owner', {model: User});