Taskgration

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem 'taskgration'

And then execute:

$ bundle

Or install it yourself as:

$ rake taskgration:install:migrations

Usage

1. Creating a task to migrate

$ rails generate taskgration:create YOUR_TASK_MIGRATION_NAME

2. Running the unapplied tasks migrations

$ rake taskgration:up

3. Rolling back applied tasks migrations

$ rake taskgration:down TASKGRATION_VERSION=YOUR_VERSION_NUMBER #=> Rollback 1 specific version
$ rake taskgration:down TASKGRATION_STEPS=QUANTITY_OF_STEPS #=> Rollback the number of times passed
$ rake taskgration:down #=> Rollback always the newest created migration

License

The gem is available as open source under the terms of the MIT License.