0

I use rails edge (4.0) and when executing:

bundle exec rake db:create

I get

Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile.

I do have "gem pg" in my Gemfile and I have run bundle install...

what could be the reason for this?

thank you

1
  • Can you try require 'pg' in rails console? Commented Apr 11, 2013 at 20:50

2 Answers 2

1

The problem was that I was using an old version of pg gem (0.9.0), newer versions work as expected!

Sign up to request clarification or add additional context in comments.

Comments

0

For me, works without user/pass, and using host settings on config/database.yml

defatul: &default
  adapter: postgresql
  encoding: utf-8
  host: localhost
  pool: 5

development:
  <<: *default
  database: appname_development

test:
  <<: *default
  database: appname_test

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.