Skip to content

Instantly share code, notes, and snippets.

@dangerousbeans
Last active December 11, 2015 23:38
Show Gist options
  • Save dangerousbeans/4677641 to your computer and use it in GitHub Desktop.
Save dangerousbeans/4677641 to your computer and use it in GitHub Desktop.
RESET ALL THE COUNTERS
Technology.find_each do |tech| Technology.reset_counters(tech.id, :patents) end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment