/branching_cleaner

Ruby gem to remove local databases which remained after using GIT db branching

Primary LanguageRubyMIT LicenseMIT

BranchingCleaner

Build Status Gem Version Coverage Status

[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

  1. Fork it ( https://github.com/pbrudny/branching_cleaner/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request