Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hph/farfugl

Run old Rails migrations without code dependence problems
https://github.com/hph/farfugl

Last synced: 10 days ago
JSON representation

Run old Rails migrations without code dependence problems

Awesome Lists containing this project

README

        

Farfugl
=======

[![Gem Version](https://badge.fury.io/rb/farfugl.png)](http://badge.fury.io/rb/farfugl)

Migrating an old database with old migrations can be a pain because the
migrations often depend on code that doesn't exist in the latest version of the
application. The simplest solution is to checkout to the commit where each
migration was introduced (or last modified) and run each migration from there,
but this can be time-consuming and tedious. **Farfugl** automates this process.

### Setup

You can install **Farfugl** on your system like any other gem:

gem install farfugl

You can also add `gem 'farfugl'` to your Rails application's Gemfile and run
`bundle`.

### Usage

Please note that **Farfugl** is still under development and *may* not be
completely stable; always create backups of your database before using it.

Running **Farfugl** is simple:

rake farfugl:migrate