BranchingCleaner
[WIP] If you do database branching the biggest problem you might have is enormous amount of useless databases. The purpose of this gem is to clean that mess.
Installation
Add this line to your application's Gemfile:
gem 'branching_cleaner'
And then execute:
$ bundle
Or install it yourself as:
$ gem install branching_cleaner
Add this line to Rakefile
require 'branching_cleaner/rake_tasks'
Usage
Remove git branch with a database
rake db:drop_branch
Remove all development and test databases associated with Git branches
rake db:clean_branches
Remove all development and test databases remaining after removing Git branches
rake db:drop_leftovers
Contributing
- Fork it ( https://github.com/pbrudny/branching_cleaner/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