title: heroku db:pull Failed to connect to database NoMethodError
body: <p>When I run <code>heroku db:pull</code> I get a <code>NoMethodError</code>. Fervent googling has failed to provide a solution.</p>
  
  <pre><code>rails_app[master*]/
  ↪ heroku db:pull --remote [app] --confirm [app]
  Loaded Taps v0.3.24
  Auto-detected local database: postgres://127.0.0.1/[db name]?encoding=utf8
  Warning: Data in the database 'postgres://127.0.0.1/[db name]?encoding=utf8' will be overwritten and will not be recoverable.
  Failed to connect to database:
    NoMethodError -&gt; undefined method `close' for nil:NilClass
  </code></pre>
  
  <p>The result is the same when I supply the database name as <code>postgres://localhost/app_development</code></p>
  
  <p>I have taps, pg, sequel installed:</p>
  
  <pre><code>rails_app[master*]/
  ↪ gem list --local | grep -E taps\|pg\|sequel
  pg (0.15.1, 0.15.0, 0.14.1)
  sequel (3.46.0, 3.20.0)
  taps (0.3.24)
  </code></pre>
  
  <p>And just in case, my rails config/database.yml</p>
  
  <pre><code>development: &amp;default
    adapter: postgresql
    database: app_development
    encoding: utf8
    min_messages: warning
    pool: 5
    timeout: 5000
  
  test:
    &lt;&lt;: *default
    database: app_test
  </code></pre>
  
  <p>I'm on Rails 3.2.13.</p>
  
  <p>Has anyone run into this and come up with a solution?</p>