Permalink
Browse files

Defer table-creation until deferred association-creation

  • Loading branch information...
1 parent 39eeac4 commit b13d0e0478400d374e2b63715ca4031163a1fe05 mde committed Mar 11, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 templates/Jakefile
View
@@ -263,7 +263,10 @@ namespace('db', function () {
complete();
}
};
- createTable();
+ // Defer until associations are set up
+ setTimeout(function () {
+ createTable();
+ }, 0);
}, {async: true});
task('init', ['env:init'], function () {

0 comments on commit b13d0e0

Please sign in to comment.