Mince Migrator

Travis CI

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 for writing gli

License

Copyright (c) 2013 Matt Simpson

MIT License

View the LICENSE.txt file included in the source