Hamburger
Hamburger is designed to easily transfer data from one SQL database to another using JSON and active record. By dumping the data to JSON the data remains database agnostic to be uploaded later.
Installation
Add this line to your application's Gemfile:
gem 'hamburger'
And then execute:
$ bundle
Usage
Saving Data:
- rake db:schema:dump
- rake hamburger:dump
- If any models are off from what they may be in console write them to hamburger_model.txt as a hash. For example Paper Trail's Version would be the following hash "PaperTrail::Version"
Restoring Data:
- rake db:schema:load
- rake hamburger:load
- You're done.
Contributing
- Fork it ( https://github.com/plowdawg/hamburger/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request