This project is archived and is in readonly mode.

#1039 ✓wontfix
Paul Barry

Add ability to specify addtional paths for migrations

Reported by Paul Barry | September 12th, 2008 @ 11:56 PM | in 2.x

I'd like to be able to specify additional paths for migrations to be located in. This patch adds that feature. The primary use case I'm thinking for this is to be able to have something like rails/migrations inside of gems, but I suppose there could be other situations where this could be useful.

Comments and changes to this ticket

  • Pratik

    Pratik December 20th, 2008 @ 06:44 PM

    • Assigned user set to “Pratik”
    • State changed from “new” to “wontfix”

    I'm really against scattared migrations. I think we should just make it easy to copy migrations from engines/plugins/gems to app's db/migrate directory.

    Now that engines are in the core, they'll need a similar functionality. So please do bring this up in IRC/mailing list if it hasn't been resolved in time of 2.3.


  • Paul Barry

    Paul Barry December 20th, 2008 @ 07:05 PM

    Yeah, I'm fine with not adding this. I ended up writing a generator to copy the migrations from my gem to the app. Since they are timestamped, there's no problem. If it were up to me, I'd let people do what they want with the framework and store migrations in multiple places if that's what makes sense for the app, but having the generator copy them into the app is good enough work around.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket