1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

TransactionSerializationError should inherit StatementInvalid for backward compatibility

Originally `TransactionSerializationError` was `StatementInvalid` in
Rails 5.0. It should keep backward compatibility.
This commit is contained in:
Ryuta Kamizono 2016-08-02 23:52:02 +09:00
parent c205e3fca3
commit f78eda63ed

View file

@ -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