Skip to content

Instantly share code, notes, and snippets.

@jdx
Forked from dladowitz/check_admin_devices.rb
Last active December 11, 2015 16:48
Show Gist options
  • Save jdx/4629884 to your computer and use it in GitHub Desktop.
Save jdx/4629884 to your computer and use it in GitHub Desktop.
count = 0
AdminDevice.all.each do |admin_device|
device = Device.find(admin_device.udid)
unless device.try(:last_run_time_tester)
puts "'last_run_time_tester' was false: #{admin_device.description}"
count += 1
end
end
puts "Total Admin Devices having last_run_time_tester set to false: #{count}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment