diff --git a/lib/migration.js b/lib/migration.js index f0bc910..060a271 100644 --- a/lib/migration.js +++ b/lib/migration.js @@ -420,7 +420,7 @@ function mixinMigration(MySQL, mysql) { var definition = this.getModelDefinition(model); var fk = definition.settings.foreignKeys[keyName]; if (fk) { - var fkEntity = typeof fk.entity === "object" ? fk.entity : {name: fk.entity}; //this.getModelDefinition(fk.entity); + var fkEntity = typeof fk.entity === 'object' ? fk.entity : {name: fk.entity}; //this.getModelDefinition(fk.entity); //TODO verify that the other model in the same DB return ' CONSTRAINT ' + this.client.escapeId(fk.name) +