Skip to content

Instantly share code, notes, and snippets.

@Kevinwlee
Created December 18, 2013 22:24
Show Gist options
  • Save Kevinwlee/8030943 to your computer and use it in GitHub Desktop.
Save Kevinwlee/8030943 to your computer and use it in GitHub Desktop.
DB clean up
Device.tag('sand_creek').where("created_at < ?", Date.today ).each { |d| d.destroy }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment