diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-02 23:52:02 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-02 23:52:02 +0900 |
commit | f78eda63ed212300ebb7ea299dc0a9219db0adc6 (patch) | |
tree | 3610816a87352a38082a6586601597c0f12ccac3 /activerecord | |
parent | c205e3fca333e7c24dd1e36d439f83cdaf074e44 (diff) | |
download | rails-f78eda63ed212300ebb7ea299dc0a9219db0adc6.tar.gz rails-f78eda63ed212300ebb7ea299dc0a9219db0adc6.tar.bz2 rails-f78eda63ed212300ebb7ea299dc0a9219db0adc6.zip |
`TransactionSerializationError` should inherit `StatementInvalid` for backward compatibility
Originally `TransactionSerializationError` was `StatementInvalid` in
Rails 5.0. It should keep backward compatibility.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |