Sha256: e1761614fd103a171ca5a46242a5250916e8368638344366d808373ce829ef95

Contents?: true

Size: 1.56 KB

Versions: 2

Compression:

Stored size: 1.56 KB

Contents

# Mince Migrator

[![Travis CI](https://travis-ci.org/coffeencoke/mince_migrator.png)](https://travis-ci.org/#!/coffeencoke/mince_migrator)

Mince Migrator is a library that provides a way to run database
migrations for your ruby applications.

## Installation

    $ gem install mince_migrator

## Usage

### Generate a migration

	$ mince_migrator create "Load admin users"

### Implement your migration

The output of creating the migration will tell you where the migration was created.

Implement the `run` method with the behavior of your migration.

### Run your single migration

	$ mince_migrator run "Load admin users"
	
### Revert your single migration

	$ mince_migrator revert "Load admin users"

### Run all migrations that have not yet been ran

	$ mince_migrator run_all

### View all migrations

*My favorite!*

	$ mince_migrator list

### Check the status of a migration

	$ mince_migrator show "Load admin users"

### View all available commands

	$ mince_migrator --help

## Contributing

1. Fork it
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 new Pull Request

## Bonus contributions!

1. Talk with me first
2. Make all commits stable
3. Include tests
4. Update documentation for your added feature

Special Thanks to [@davetron5000](https://github.com/davetron5000) for writing [gli](https://github.com/davetron5000/gli)

# License

Copyright (c) 2013 Matt Simpson

MIT License

View the LICENSE.txt file included in the source

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mince_migrator-1.0.1 README.md
mince_migrator-1.0.0 README.md