The transaction_isolation gem seems to not work anymore (raises some NotImplementedError). Instead, we probably need to use the new syntax ActiveRecord::Base.transaction(isolation: something) do
The above seems to fail in some tests, complaining that you cannot set the isolation level for a transaction in progress. I can fix this by adding a check so a routine does not attempt to create a transaction if one is running.
Even if I do the above, some of Lev's specs fail, complaining that the "adapter does not support setting transaction isolation" (seems like we might need to skip setting the isolation level if using sqlite3)
ActiveRecord::Base.transaction(isolation: something) do