title: rake db:create throws "database does not exist" error with postgresql
body: <p>I'm using rails 4.1.5 with postgresql 9.1 under Debian 7, and I'm not able to create a database in my development environment. When I run</p>
  
  <pre><code>bin/rake db:create
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>home/rs/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:898:in `rescue in connect': FATAL:  database "direct-dev" does not exist
  Run `$ bin/rake db:create db:migrate` to create your database (ActiveRecord::NoDatabaseError)
  from /home/rs/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:888:in `connect'
  from ...
  </code></pre>
  
  <p>I am trying to create the database so, naturally, it does not exist. However rails should create it ... Here's my config/database.yml:</p>
  
  <pre><code>default: &amp;default
    adapter: postgresql
    encoding: unicode
    pool: 5
  
  development:
    &lt;&lt;: *default
    database: direct-dev
  </code></pre>
  
  <p>And here's a part of the postgresql log:</p>
  
  <pre><code>2014-09-01 19:30:40 CEST LOG:  connection received: host=[local]
  2014-09-01 19:30:40 CEST LOG:  connection authorized: user=rs database=direct-dev
  2014-09-01 19:30:40 CEST FATAL:  database "direct-dev" does not exist
  </code></pre>
  
  <p>Do you have any pointers? I've been at this for more than an hour, and still can't understand why this is happening ...</p>
  
  <p>Thanks!</p>