add failing tests for has one and has many
Merge pull request #2318 from janmeier/master

Made sequelize.where smarter
Merge branch 'failing-field-tests' of https://github.com/vpontis/sequelize into vpontis-failing-field-tests
fix(associations): fix bug with associatons and field, closes #2361, #2350
Typo in findAll options.include[].where
single linked has many broken when specifying field
fix of singly linked has many error
Merge pull request #2371 from jharia/patch-1

Typo in findAll options.include[].where
add a couple extra expectations to hasMany
Merge pull request #2372 from vpontis/puppy-branch

single linked has many broken when specifying field
Fixes issue #2373
Use the promise chain for the test
Updates to the test to check for valid unique index creation
Merge pull request #2374 from rfink/bugfix/indexes_with_field_names

Fixes issue #2373
update postgresql error message parsing on foreign key

Error code: 23503

On "recent" postgresql (> 8?), error message is:
insert or update on table "$table" violates foreign key constraint
"$index"

I updated the error match to get the right table and index in both
cases.

Before this patch, sequelize failed badly with: `TypeError: Cannot read
property '1' of null`
add check for another error message
Merge pull request #2393 from vvo/fix-pgsql-constraint-message

update postgresql error message parsing on foreign key
Add: CounterCache feature to hasMany models
Merge pull request #2375 from Kuzmin/master

Add: CounterCache feature to hasMany models
Fix: Model.count() and findAndCountAll() returned NaN with Postgres and quoteIdentifiers==false.