One of the new features of Rails 5 will be granular SQL logging so you can easily see
TRANSACTION statements in your log. For example:
But why let Rails 5 have all the fun? Today I created a gem that allows you to leverage this feature now. The gem is currently compatible and tested for Rails 3.2 to 4.2. Get it here and happy logging!