reverting transactions.rb