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

Commit 35cf11c9 by Sascha Depold

formatting

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