shou2017.com
JP

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

Wed Jul 26, 2017
Sat Aug 10, 2024

I tried to roll back the migration and got the following notation.

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.

The cause of this phenomenon is a postgresql alert, so fixing postgresql and doing a bundle update will eliminate the display.

Just rewrite the gemfile.

gem 'pg'
  
gem 'pg', '0.20.0'

reference