aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/transactions.rb
diff options
context:
space:
mode:
authorLars Kanis <kanis@comcard.de>2017-03-22 11:10:03 +0100
committerLars Kanis <kanis@comcard.de>2017-03-22 12:52:09 +0100
commitf28a331023fab241f694c53802b45fb2d66c2c4f (patch)
tree185a501f3d3bbef86e88b4fae2a1454176c5f8e1 /activerecord/lib/active_record/transactions.rb
parent34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (diff)
downloadrails-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.rb2
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
#