My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

Easily Migrate

1. Have you ever gotten into a failure state on a migration and needed to set the db version manually?

A: Why should you login and manually run sql just to do this, now there is a rake task for it.
Use db:version:set
2. Have you ever wanted an easy way to migrate to one version down?
A: db:migrate:down
3. Have you ever wanted to migrate to just one version up?
A: db:migrate:up

4. Wanna do an svn up and a db:migrate all at once

A: upgrate

Installation

1. ./script/plugin install http://easilymigrate.googlecode.com/svn/trunk/easily_migrate

Usage

Set Version >rake db:version:set VERSON=<version to set>

Migrate Up

>rake db:migrate:up

Migrate Down

>rake db:migrate:down
svn up and migrate >rake upgrate
Brought to you with love, from DevelopingChris, (http://www.developingchris.com)
Copyright (c) 2007 Chris Chandler, released under the MIT license
Powered by Google Project Hosting