rschmukler/agenda — pull request #90 by andyneville (2014-09-03 21:06:42+00:00)
Title: Create database indexes when initializing Agenda instance

Here's a PR for my fix to #82. Adding useful error handling would require refactoring the database() call to asynchronous, so I just left error handling as a no-op. I think this should be safe since errors during index creation should only be related to connection string problems, and index creation failure isn't critical (other than for solving this issue)