Skip to content

Instantly share code, notes, and snippets.

@jaylevitt
Created March 22, 2012 22:13
Show Gist options
  • Save jaylevitt/2165010 to your computer and use it in GitHub Desktop.
Save jaylevitt/2165010 to your computer and use it in GitHub Desktop.
UPDATE tappables SET taps_count = count(taps.id)
FROM taps
WHERE taps.tappable_id = tappables.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment