title: psql: FATAL: database "db_name" is not currently accepting connections
body: <p>I have a rails app running on a Postgres 9.3.5 database. This has been up &amp; running for some time on my development environment. Today I applied a rails migration, and then when I attempted to run a <code>rake db:reset</code>, I received the error: </p>
  
  <pre><code> psql: FATAL: database "db_name" is not currently accepting connections
  </code></pre>
  
  <p>This is now the only response when I attempt to run any psql or rake db tasks. For example: </p>
  
  <pre><code>  $ psql -d db_name
    psql: FATAL:  database "db_name" is not currently accepting connections
  </code></pre>
  
  <p>I can see db_name in the list of dbs, and it has the correct owner. </p>
  
  <p>What would cause the state of "not currently accepting connections", and how can it be fixed?</p>