Permalink
Browse files

call the callback if the migrations directory already exists

  • Loading branch information...
1 parent 7cfc0ca commit 6da46def8fb9b9b15fef600e508b3e62e45e503c @nehresma nehresma committed Dec 30, 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 6da46de

Please sign in to comment.