I want to run multiple test processes against one database. Each process needs to see the database as if it were the only process. Nested transactions (putting the whole test in a transaction) would do it, but Postgres can't do that. Is there another way?
AR should already do nested transaction emulation as long as you do requires_new: true
-
-
See the nested transaction section http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html#method-i-transaction …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.