Migrate heroku database to on-prem PostgreSQL
Handy script from when you're migrating your app away from heroku. This will make it so that you can pull the heroku database to on-prem again and again until you're ready to make the switch.
Tags: heroku, postgres