ActiveRecord::Deadlocked Ruby on Rails 5.1.2 Class ActiveRecord::Deadlocked < ActiveRecord::TransactionRollbackError activerecord/lib/active_record/errors.rb Deadlocked will be raised when a transaction is rolled back by the database when a deadlock is encountered.