{"action":"created","issue":{"url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/331","labels_url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/331/comments","events_url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/331/events","html_url":"https://github.com/db-migrate/node-db-migrate/issues/331","id":123968633,"number":331,"title":"Error in the end of the migrations up command","user":{"login":"yaring","id":2077333,"avatar_url":"https://avatars.githubusercontent.com/u/2077333?v=3","gravatar_id":"","url":"https://api.github.com/users/yaring","html_url":"https://github.com/yaring","followers_url":"https://api.github.com/users/yaring/followers","following_url":"https://api.github.com/users/yaring/following{/other_user}","gists_url":"https://api.github.com/users/yaring/gists{/gist_id}","starred_url":"https://api.github.com/users/yaring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaring/subscriptions","organizations_url":"https://api.github.com/users/yaring/orgs","repos_url":"https://api.github.com/users/yaring/repos","events_url":"https://api.github.com/users/yaring/events{/privacy}","received_events_url":"https://api.github.com/users/yaring/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/db-migrate/node-db-migrate/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"wzrdtales","id":1786821,"avatar_url":"https://avatars.githubusercontent.com/u/1786821?v=3","gravatar_id":"","url":"https://api.github.com/users/wzrdtales","html_url":"https://github.com/wzrdtales","followers_url":"https://api.github.com/users/wzrdtales/followers","following_url":"https://api.github.com/users/wzrdtales/following{/other_user}","gists_url":"https://api.github.com/users/wzrdtales/gists{/gist_id}","starred_url":"https://api.github.com/users/wzrdtales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzrdtales/subscriptions","organizations_url":"https://api.github.com/users/wzrdtales/orgs","repos_url":"https://api.github.com/users/wzrdtales/repos","events_url":"https://api.github.com/users/wzrdtales/events{/privacy}","received_events_url":"https://api.github.com/users/wzrdtales/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-12-27T08:47:15Z","updated_at":"2015-12-27T10:39:34Z","closed_at":null,"body":"When I'm running `NODE_ENV=development db-migrate up`\r\nI'm getting this error\r\n```\r\n[ERROR] TypeError: undefined is not a function\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/db-migrate-mongodb/index.js:439:23)\r\n    at Object.Base.extend.close (/usr/local/lib/node_modules/db-migrate-mongodb/index.js:434:12)\r\n    at onComplete (/usr/local/lib/node_modules/db-migrate/api.js:845:19)\r\n    at /usr/local/lib/node_modules/db-migrate/lib/migrator.js:120:11\r\n    at /usr/local/lib/node_modules/db-migrate/lib/migration.js:339:7\r\n    at processImmediate [as _immediateCallback] (timers.js:367:17)\r\n```\r\n\r\ndb-migrate version: 0.10.0-beta.6\r\ndb-migrate-mongodb version: 1.0.1\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29417283-error-in-the-end-of-the-migrations-up-command?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/comments/167399810","html_url":"https://github.com/db-migrate/node-db-migrate/issues/331#issuecomment-167399810","issue_url":"https://api.github.com/repos/db-migrate/node-db-migrate/issues/331","id":167399810,"user":{"login":"wzrdtales","id":1786821,"avatar_url":"https://avatars.githubusercontent.com/u/1786821?v=3","gravatar_id":"","url":"https://api.github.com/users/wzrdtales","html_url":"https://github.com/wzrdtales","followers_url":"https://api.github.com/users/wzrdtales/followers","following_url":"https://api.github.com/users/wzrdtales/following{/other_user}","gists_url":"https://api.github.com/users/wzrdtales/gists{/gist_id}","starred_url":"https://api.github.com/users/wzrdtales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzrdtales/subscriptions","organizations_url":"https://api.github.com/users/wzrdtales/orgs","repos_url":"https://api.github.com/users/wzrdtales/repos","events_url":"https://api.github.com/users/wzrdtales/events{/privacy}","received_events_url":"https://api.github.com/users/wzrdtales/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T10:39:34Z","updated_at":"2015-12-27T10:39:34Z","body":"Ok actually the problem is that the connection is already closed at that point due to the current functionality of the mongo db driver, which is planned to be reworked in some future. I'm going to push out a patch to fix this problem as soon as I arrive back home this evening.\r\n\r\nThank you for reporting!"}}