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

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) {
var migrationContent = [
"module.exports = {",
" up: function(migration, DataTypes) {",
" // add altering commands here",
" up: function(migration, DataTypes, done) {",
" // add altering commands here, calling 'done' when finished",
" },",
" down: function(migration) {",
" // add reverting commands here",
" down: function(migration, DataTypes, done) {",
" // add reverting commands here, calling 'done' when finished",
" }",
"}"
].join('\n')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!