class ActiveRecord::AsynchronousQueryInsideTransactionError

to perform an asynchronous query from inside a transaction
AsynchronousQueryInsideTransactionError will be raised when attempting