test case covering #2749, closes #2749
fix(association scopes): fix bug with include.where combined with include.association.scope, closes #2740
fix(attribute/field): provide better field support for postgres instance destroy
fix: only alias field if field is different
fix: move default field assignment to refreshAttributes rather than init
fix(associations): 1:1 (belongsTo & hasOne) associations should use limit: null by default since they are querying on primary key, closes #2698
refactor(instance): rename updateAttributes to update and move tests to seperate file
fix(instance): set should use local passed options.attributes rather than global options, closes #2012
fix(instance): update should not set attributes not defined by fields, fixes #1320
Update changelog.md
Update changelog.md
refactor(model): move attribute existance cache checks from init to refreshAttributes, closes #2409
fix(plugins): have counter-cache use correct way of defining default values
[2.0.0-rc4]
fix(instance): update() should only save the provided attributes (leaving other changes attributes alone), closes #2341
fix virtual attribute test relying on a faulty assumption
make UniqueConstraintError inherit ValidationError

Unique constraint errors are in fact a different type of validation
error, run on the database level. While important to make a destinction
internally when we have encountered a UniqueConstraintError vs a normal
ValidationError, on the user side they should be represented the same.
This patch allows these exceptions to provide data in the same fashion
making it easier to uniformly process the errors