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
bin/rake db:create >
Had the same issue today (in OS X).
Solved with:
psql -U postgres CREATE ROLE rolename WITH CREATEDB LOGIN;
Use \du to check if it's created.
\du
Use \password rolename to create a password for that user/role.
\password rolename
Then you can setup DB with bundle exec rake db:migrate
bundle exec rake db:migrate