class ActiveRecord::ConnectionAdapters::TransactionState

def rolledback?

def rolledback?
  @state == :rolledback || @state == :fully_rolledback
end