shou.com
JP / EN

You should use PG::Connection, PG::Result, and PG::Error instead, respectively.と表示された場合

Wed Jul 26, 2017
Wed Mar 21, 2018

マイグレーションをロールバックしようとしたところ以下のような表記になりました。

1
2
3
4
5
Mac$ rake db:rollback
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.

You should use PG::Connection, PG::Result, and PG::Error instead, respectively.

この現象の原因は、postgresqlの注意喚起なので、postgresqlを固定してbundle updateをすると表示は無くなります。

gemfileを書き換えるだけでok

1
2
3
gem 'pg'
  
gem 'pg', '0.20.0'

参考