Update transactions.rb

Fixed factory