<commit_before>DB\_BRANCH
==========

Rails plugin to play nice with git branching and databases. Loads branch-specific database.yml file allowing you to migrate in branches without affecting the database of other branches.
<commit_msg>Updating the readme.<commit_after>DB\_BRANCH
==========

Rails plugin to play nice with git branching and databases. Loads a branch-specific database YAML file allowing you to migrate in branches without affecting the database of other branches.

Usage
-----

First, you'll want to run setup which currently adds `config/database.branch.*` to `.gitignore`.

    rake db:branch:setup

Next, from a branch, you'll create your new branch-specific database.

    rake db:branch:create

This will create a new YAML file in config called `database.branch.[branch_name].yml`, change the database names to `[application]_[environment]_[branch]`, create all databases, load the schema, and prepare the test database.

To-do
-----

* Add a clone task to duplicate the database from another branch instead of creating a new one

{'fraction_non_alphanumeric': 0.08452041785375118, 'fraction_numerical': 0.0, 'mean_word_length': 4.576719576719577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5346165', 'n_tokens_mistral': 278, 'n_tokens_neox': 258, 'n_words': 133}