Commit 2e82ac99 authored by Shane Kilkelly's avatar Shane Kilkelly
Browse files

Add token-access-refs indexes

parent c3d7f36b
......@@ -30,8 +30,16 @@ exports.migrate = (client, done=()->) ->
}, (err) ->
if err?
return done(err)
console.log ">> done adding indexes for token-based project access"
done()
db.projects.ensureIndex {tokenAccessReadAndWrite_refs: 1}, {
background: true
}, (err) ->
if err?
return done(err)
db.projects.ensureIndex {tokenAccessOnly_refs: 1}, {
background: true
}, (err) ->
console.log ">> done adding indexes for token-based project access"
done()
exports.rollback = (client, done) ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment