Skip to content

Instantly share code, notes, and snippets.

  1. item 4
  2. item one
  3. item three
  4. item two
@dreki
dreki / flash_db.rake
Created August 8, 2012 20:21
Easily flash your local Rails database with data from your Heroku environment
# Flash your local Rails database with data from your Heroku environment.
# Much faster than heroku db:pull.
#
# Notes:
# - Requires that you use postgres locally
# - Requires that pg_restore is available
# - Requires initialized Heroku setup for the given project
# - Requires that the pgbackups addon be installed for the given Heroku app
require "open-uri"