This gem provides a rake task to simply sync the local Postgres database with the production database on Heroku. The gem in meant to be used on a Rails project.
Add this line to your application's Gemfile:
gem 'database_syncer'
And then execute:
$ bundle
Git remotes on the specific app this gem is included in are used to determine the app names for the heroku production and staging apps.
- heroku (for production which is the default)
- staging (for staging)
rake db:sync:local
rake db:sync:staging
The gem is available as open source under the terms of the MIT License.