Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

rake db:forward (opposite of db:rollback)

#768

This patch adds a db:forward rake task that mimics db:rollback, except with movement in the opposite direction. The default action is to perform only the next migration. The STEP variable is also available to perform a variable number of steps.

Examples:

Perform the next migration... rake db:forward

Perform ONLY the next 4 migrations.... rake db:forward STEP=4

Reported by David Baldwin · August 6th, 2008 @ 10:29 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH
    • State changed from new to incomplete

    I like. Need tests, though.

    September 10th, 2008 @ 06:08 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from migrations, patch to bugmash, migrations, patch

    August 3rd, 2009 @ 03:12 PM

  3. Cristi Balan
  4. Rizwan Reza
    Rizwan Reza
    • Assigned user set to José Valim
    • Tag changed from bugmash, migrations, patch to bugmash, migrations, patch, tested, verified

    verified patch

    +1 This works. Tests passing under 2-3-stable. Patch doesn't apply in master.

    August 8th, 2009 @ 05:30 PM

  5. José Valim
    José Valim
    • Assigned user changed from José Valim to Pratik
    • State changed from incomplete to new

    I'm handling just master tickets. :) Assigning to Pratik.

    August 8th, 2009 @ 05:32 PM

  6. Repository
    Repository
    • State changed from new to resolved

    (from [7f84f14efabf3e342a231b8aa9650cb484c802d6]) Add rake db:forward - opposite of db:rollback [#768 rake db:forward (opposite of db:rollback) state:resolved]

    Example:
    rake db:forward # performs the next migration rake db:forward STEP=4 # performs the next 4 migrations

    Signed-off-by: Pratik Naik pratiknaik@gmail.com
    http://github.com/rails/rails/commit/7f84f14efabf3e342a231b8aa9650c...

    August 8th, 2009 @ 05:42 PM

  7. CancelProfileIsBroken
    CancelProfileIsBroken
    • Assigned user cleared.
    • Tag changed from bugmash, migrations, patch, tested, verified to migrations, patch, tested, verified
    • Milestone cleared.

    August 8th, 2009 @ 11:06 PM