Permalink
Browse files

Merge pull request #4 from aheckmann/master

load js files only
  • Loading branch information...
2 parents 832febc + bc66b38 commit 8fd55f3d7d79460d1855d03db385dd7823148f26 @tj committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/migrate
View
2 bin/migrate
@@ -107,7 +107,7 @@ while (args.length) {
function migrations() {
return fs.readdirSync('migrations').filter(function(file){
- return file.match(/^\d+/);
+ return file.match(/^\d+.*\.js$/);
}).sort().map(function(file){
return 'migrations/' + file;
});

0 comments on commit 8fd55f3

Please sign in to comment.