Fix #1409

Find pending migrations and return them in getUndoneMigrations
Added test for actual execution
pg: remove the useless connection string
Support for specifying indexes on a model
Cleaning up indexes code a bit
Made addIndexQuery more DRY
Fix an issue with dialect.supports for abstract dialect being overwritten
Fixing the error object inheritence
Adding a method to find validation errors by path
Updating the instance validator errors to use the new ValidationErrorItem
Fixing unit tests
Assing Error typeof assertions
Fixing stack trace capturing and switching back to util.inerhits
Adding JSDoc comments
move logic for checking if array can be treated as #and to utils
check how to treat array when doing paranoidClause
better fix for paranoidClause failing complex wheres
fix comment
remove accidental .only
Merge pull request #2093 from meetearnest/fix-paranoidClause

Fix paranoid clause treating all arrays as if they contained only strings