I have installed postgresql-9.2.4
from the source, now in rails app when I execute:
rake db:create
command I get:
$ bin/rake db
I had a similar issue. My database.yml was like this:-
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: chatapp_development
test:
<<: *default
database: chatapp_test
production:
<<: *default
database: chatapp_production
username: chatapp
password: <%= ENV['CHATAPP_DATABASE_PASSWORD'] %>
I added template: template0 to the default settings
default: &default
adapter: postgresql
template: template0
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
And it worked