3

I have a problem running the heroku db:pull and db:push commands. My app is running Rails 3 on the bamboo-ree-1.8.7 stack. I am new to Sequel and am not sure what the script is complaining about.

$heroku db:push
Loaded Taps v0.3.14
Auto-detected local database: postgres://xxx@127.0.0.1/xxx_development?encoding=utf8
Warning: Data in the app 'profreelas' will be overwritten and will not be recoverable.
Failed to connect to database: NameError -> uninitialized constant Sequel::Postgres::PGError

Additional info:
My taps, sequel, and heroku gems are up to date
I am running the pg db adapter gem
Running postgresql in my local machine

4

1 回答 1

5

您的 ruby​​ 路径中是否有 pg.rb 或 postgres.rb 文件?因为这可能会导致错误,因为需要 pg 或 postgres 将加载您的文件而不是 pg 或 postgres 库。

于 2011-01-04T16:34:12.083 回答