I changed my MySQL storage engine to be InnoDB so that it can manage transactions for me.
Is there a recommended 开发者_如何学编程or good-practice way or set of methods that people use to see a MySQL transaction in Rails from beginning to end, and ability to roll back changes?
Thanks!
The only information I was able to find was this link. Its part of the old Rails wiki and it mentions the support for transaction rollbacks. As far as viewing transactions, is the debugging output not verbose enough for you?
I'm not 100% sure I've understood the question, maybe you mean something specific when you say "see a transaction". But assuming you're just asking how to work with transactions in Rails - take a look in the Rails API docs
精彩评论