0.0
No commit activity in last 3 years
No release in over 3 years
Sync the local database with production data from Heroku
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

>= 0
 Project Readme

DatabaseSyncer

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.

Installation

Add this line to your application's Gemfile:

gem 'database_syncer'

And then execute:

$ bundle

Requirements

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.

Remotes must be named as follows:
  • heroku (for production which is the default)
  • staging (for staging)

Usage

Sync the local database from the heroku production database:
rake db:sync:local
Sync the staging heroku database from the heroku production database:
rake db:sync:staging

License

The gem is available as open source under the terms of the MIT License.