不要怂,就是干,撸起袖子干!

Commit 35cf11c9 by Sascha Depold

formatting

1 parent 6cb75325
Showing with 4 additions and 5 deletions
......@@ -9,10 +9,10 @@ module.exports = (function() {
var Migrator = function(sequelize, options) {
this.sequelize = sequelize
this.options = Utils._.extend({
path: __dirname + '/../migrations',
from: null,
to: null,
logging: console.log,
path: __dirname + '/../migrations',
from: null,
to: null,
logging: console.log,
filesFilter: /\.js$/
}, options || {})
......@@ -49,7 +49,6 @@ module.exports = (function() {
, from = migrations[0]
if (options.method === 'down') {
from = migrations[0]
migrations.reverse()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!