Correct me if I’m wrong, but it appears to me that rake migrate does not
wrap its execution in a transaction. Is this right? If so, why not?
And, is it possible at all to wrap a rake migrate in a DB transaction?
raise “My Error”
“My Error” is thrown but the transaction is not rolled back. Is raising
an exception the proper way to invoke an ActiveRecord transaction
I’ve also tried doing:
But this, obviously, doesn’t work since %x[rake migrate] spanws a new
process outside of the scope of the transactioning.