Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.44 KB | None | 0 0
  1. con = MDB.new('MystrixNWN').dbopen
  2.         count = con[:PACK_ANIMALS].where(:ANIMAL_UUID => "").count
  3.         result = con[:PACK_ANIMALS].where(:ANIMAL_UUID => "")
  4.         result.each do |thing|
  5.             p thing
  6.             genUUID()
  7.             myID = @uniqueid.to_s
  8.             success = thing.update(:ANIMAL_UUID => myID)          
  9.             p thing
  10.             p success
  11.             end
  12.         p count
  13.         con.disconnect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement