ah-sequelize-plugin
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -20,7 +20,7 @@ var path = require('path'); | ||
var migrator = api.sequelize.sequelize.getMigrator({ | ||
path: api.project_root + '/migrations', | ||
path: api.project_root + '/migrations' | ||
}); | ||
migrator.migrate.success(function() { | ||
if(typeof next === 'function'){ next(); } | ||
}) | ||
migrator.migrate({ method: 'up' }).success(function() { | ||
next(); | ||
}); | ||
}, | ||
@@ -55,3 +55,3 @@ | ||
} | ||
} | ||
}, | ||
@@ -58,0 +58,0 @@ test: function(next){ |
@@ -5,3 +5,3 @@ { | ||
"description": "I use sequelize in actionhero as an ORM", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"homepage": "http://actionherojs.com", | ||
@@ -8,0 +8,0 @@ "repository": { |
6605