# Migrations and legacy database

**URL:** <https://www.ruby-forum.com/t/migrations-and-legacy-database/112506>\
**Category:** Rails\
**Created:** [August 20, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/migrations-and-legacy-database/112506 "2007-08-20T12:08:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mf\_groups](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8baadc/32.png) [@mf\_groups](https://www.ruby-forum.com/u/mf_groups)\
**Post date:** [August 20, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/migrations-and-legacy-database/112506/1 "2007-08-20T12:08:18Z")

</div>

I’m developing a first rails application whith a legacy oracle  
database. I only have access to the datbase at work, but I would still  
like to work from home too.

I need to maintain 2 different “migration environments” in the same  
migration files.

1. At work, I don’t use the up or down methods in my migrations  
classes.
2. At home I would like to “build a copy” of the oracle database" with  
migrations and mySQL.

How can I accomplish this?  
Thanks in advance for suggestions and help.
