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

Commit 0328b0aa by Sascha Depold

Merge pull request #567 from terraflubb/migration_skeleton_gen_async_update

Update the generated migration skeleton for async
2 parents 2f5415f8 75d7eefe
Showing with 4 additions and 4 deletions
...@@ -145,11 +145,11 @@ if(program.migrate) { ...@@ -145,11 +145,11 @@ if(program.migrate) {
var migrationContent = [ var migrationContent = [
"module.exports = {", "module.exports = {",
" up: function(migration, DataTypes) {", " up: function(migration, DataTypes, done) {",
" // add altering commands here", " // add altering commands here, calling 'done' when finished",
" },", " },",
" down: function(migration) {", " down: function(migration, DataTypes, done) {",
" // add reverting commands here", " // add reverting commands here, calling 'done' when finished",
" }", " }",
"}" "}"
].join('\n') ].join('\n')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!