diff --git a/lib/loader.js b/lib/loader.js index 6ebea15..2e9527f 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -79,7 +79,7 @@ Loader.prototype.loadFixture = function(fixture, models) { var where = {}; Object.keys(Model.rawAttributes).forEach(function(k) { var fieldType = Model.rawAttributes[k].type.constructor.key; - if (data.hasOwnProperty(k) && (!fixture.keys || fixture.keys.indexOf(k) !== -1) && fieldType !== 'GEOMETRY' && fieldType !== 'VIRTUAL') { + if (data.hasOwnProperty(k) && (!fixture.keys || fixture.keys.indexOf(k) !== -1) && fieldType !== 'GEOMETRY' && fieldType !== 'GEOGRAPHY' && fieldType !== 'VIRTUAL') { //postgres if (fieldType === 'JSONB') { where[k] = {};