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

Commit 75d7eefe by Rob Fletcher

Update the generated migration skeleton for async

The auto-generated migrations don't mention done which is confusing if you're new to sequelize.
1 parent 2f5415f8
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!