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?
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?