Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created February 5, 2009 01:07
Show Gist options
  • Save brandon-beacher/58462 to your computer and use it in GitHub Desktop.
Save brandon-beacher/58462 to your computer and use it in GitHub Desktop.
Customer.connect_each do |customer|
puts "Customer #{customer.name} has #{User.count} users."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment