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
- Fork it
- 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 new Pull Request
Bonus contributions!
- Talk with me first
- Make all commits stable
- Include tests
- 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