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

Commit f2bc0afc by Brenden Grace

Make default migrations path relative to cwd.

1 parent edf38adb
Showing with 1 additions and 1 deletions
...@@ -76,7 +76,7 @@ if(program.migrate) { ...@@ -76,7 +76,7 @@ if(program.migrate) {
options = _.extend(options, { logging: false }) options = _.extend(options, { logging: false })
var sequelize = new Sequelize(config.database, config.username, config.password, options) var sequelize = new Sequelize(config.database, config.username, config.password, options)
, migratorOptions = { path: __dirname + '/../migrations' } , migratorOptions = { path: migrationsPath }
, migrator = sequelize.getMigrator(migratorOptions) , migrator = sequelize.getMigrator(migratorOptions)
if(program.undo) { if(program.undo) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!