私の問題の症状を作成することは非常に単純です:「そのようなファイルが読み込まないように - PGは」すくいデシベルをしようとしたとき:
$ rake db:create
(in /home/jason/projects/blog)
rake aborted!
no such file to load -- pg
(See full trace by running task with --trace)
私はすでに正常bundle install
とgem install pg
を実行しましたので、私はしないでください他に何が必要なのかも知っている。それは場合に役立ちます
は、ここに私の `config/database.ymlをです:
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: postgresql
encoding: unicode
database: blog_development
pool: 5
username: blog
password: foo
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: unicode
database: blog_development
pool: 5
username: blog
password: foo
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000