Make sure the action hooked into ActiveRecord is not run inside other transaction