sequelize/sequelize — pull request #2008 by alekbarszczewski (2014-07-03 20:00:13+00:00)
Title: Added support for distinct option in Model.aggregate method

Modified aggregate method in `lib/model.js` to support `distinct` option and added test to `test/dao-factory.test.js`. Now it is possible to:
```
Model.count({ distinct: true, include: [{ model: OtherModel, required: false }] }).success(function(count){ ... })
```