Permalink
Browse files

Merge pull request #6 from nehresma/executeCreate_fix

Call createMigration (via the callback) if the migrations directory already exists
  • Loading branch information...
2 parents 7cfc0ca + 6da46de commit f9d561c46a4f6d1a506e03ba76ae405de5ddfb0e @kunklejr kunklejr committed Dec 31, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/db-migrate
View
@@ -52,6 +52,8 @@ function createMigrationDir(dir, callback) {
fs.stat(dir, function(err, stat) {
if (err) {
fs.mkdir(dir, callback);
+ } else {
+ callback();
}
});
}

0 comments on commit f9d561c

Please sign in to comment.