views:

16

answers:

0

My test Code

UserAccount.transaction do
     MyModel.delete(1)
     a = 1/ 0
end

I find the delete will not rollback. how to fix this problem? is there anyway to disable the transaction in delete method?