diff options
author | Lars Kanis <kanis@comcard.de> | 2017-03-22 11:10:03 +0100 |
---|---|---|
committer | Lars Kanis <kanis@comcard.de> | 2017-03-22 12:52:09 +0100 |
commit | f28a331023fab241f694c53802b45fb2d66c2c4f (patch) | |
tree | 185a501f3d3bbef86e88b4fae2a1454176c5f8e1 /activerecord/lib/active_record/transactions.rb | |
parent | 34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (diff) | |
download | rails-f28a331023fab241f694c53802b45fb2d66c2c4f.tar.gz rails-f28a331023fab241f694c53802b45fb2d66c2c4f.tar.bz2 rails-f28a331023fab241f694c53802b45fb2d66c2c4f.zip |
[PostgreSQL]: Replace deprecated PG constants.
The old top level classes PGconn, PGresult and PGError were deprecated
since pg-0.13.0: https://github.com/ged/ruby-pg/blob/master/History.rdoc#v0130-2012-02-09-michael-granger-gedfaeriemudorg
Diffstat (limited to 'activerecord/lib/active_record/transactions.rb')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 690deee508..45795fa287 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -123,7 +123,7 @@ module ActiveRecord # # statement will cause a PostgreSQL error, even though the unique # # constraint is no longer violated: # Number.create(i: 1) - # # => "PGError: ERROR: current transaction is aborted, commands + # # => "PG::Error: ERROR: current transaction is aborted, commands # # ignored until end of transaction block" # end # |