GithubHelp home page GithubHelp logo

azitabh / multi-database-migrations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jystewart/multi-database-migrations

18.0 3.0 10.0 119 KB

A plugin to make it easier to host migrations for multiple databases in one rails app. This has been built for Rails 3.0.x.

License: MIT License

Ruby 100.00%

multi-database-migrations's Issues

Default DATABASE

I have a conventional rails app that is happily running on top of a single database managing it's migrations. The name of default database is abc and all the migration files reside in db/migrate directory.

I now need to manage migrations on another database named xyz. While putting all the relevant migration files in db/migrate/xyz and running the command rake db:multi:migrate DATABASE=xyz works like charm, I am unable to run the migration on the database abc.

What I don't want to do is to move all the files from db/migrate to db/migrate/abc and duplicate the database configurations in config/database.yml by creating abc_#{abc}.

In my opinion, there should be a default behavior to pick files from db/migrate and run migration on default database using the command rake db:multi:migrate.

Please let me know if there are any issues with this. If all of us agree, I can take this up. Or, am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.