Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8267213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:26:11+00:00 2026-06-08T05:26:11+00:00

From the command line, I can run rake db:migrate:up VERSION=20120123160700 This will migrate up

  • 0

From the command line, I can run

rake db:migrate:up VERSION=20120123160700

This will migrate up to that specific version.

I want to be able to migrate up (but not beyond a specific version) from a rake task, preferably using db:migrate:up.

I’ve tried the following and put the error messages below:

Rake::Task['db:migrate:up VERSION=20120123160700'].invoke

Don’t know how to build task ‘db:migrate:up VERSION=20111208105833’

Rake::Task['db:migrate:up'].invoke('VERSION=20120123160700')

VERSION is required

Rake.application.invoke_task("db:migrate:up[VERSION=20120123160700]"

VERSION is required

Rake.application.invoke_task("db:migrate:up[VERSION=20120123160700]"

Don’t know how to build task ‘db:migrate:up VERSION=20111208105833’

How can I make this work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T05:26:12+00:00Added an answer on June 8, 2026 at 5:26 am

    It’s probably not the better solution but it should work. You can do this :

      ActiveRecord::Migrator.run(:up, ActiveRecord::Migrator.migrations_path, 20120123160700)
      Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
    

    You can see the source here : https://github.com/rails/rails/blob/621df2a1ec01b77f7b052b3571f3c696f0443fea/activerecord/lib/active_record/railties/databases.rake at line 163.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a shell script that I can run successfully from the command line.
I need a doc to rtf converter that will run from the command line,
How can I run excel from command line / cmd script such that it
I am writing a Perl script that can run both from command line and
I can run this command from the command line without any problem (the validation
I have a program that is run from the command line like this python
There is a process that i can run from the command line which writes
Possible Duplicate: Can I run from command line program created by Eclipse? I am
As I know, when I run cs myConsoleApp.cs from windows command line, I can
How can I execute a command line from within a WiX script? I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.