From f78eda63ed212300ebb7ea299dc0a9219db0adc6 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 2 Aug 2016 23:52:02 +0900 Subject: [PATCH] `TransactionSerializationError` should inherit `StatementInvalid` for backward compatibility Originally `TransactionSerializationError` was `StatementInvalid` in Rails 5.0. It should keep backward compatibility. --- activerecord/lib/active_record/errors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index 38e4fbec8b..26146dbce7 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -292,7 +292,7 @@ module ActiveRecord # # * http://www.postgresql.org/docs/current/static/transaction-iso.html # * https://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html#error_er_lock_deadlock - class TransactionSerializationError < ActiveRecordError + class TransactionSerializationError < StatementInvalid end # IrreversibleOrderError is raised when a relation's order is too complex for