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 8360393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:27:13+00:00 2026-06-09T11:27:13+00:00

I accidentally deleted my production database on heroku cedar stack several months ago. I

  • 0

I accidentally deleted my production database on heroku cedar stack several months ago. I tried to recreate the db via heroku run rake db:migrate, but something was wrong with my migrations and it failed. I then installed taps and did a heroku db:push and all was right with the world.

Can I now use heroku run rake db:migrate after running local migrations to update the production database, or am I forever tied to taps and heroku db:push?

Perhaps a better way to ask this question: will heroku run rake db:migrate go through all of my migrations (and likely fail), or will it only go through migrations that have occurred since the last heroku db:push?

  • 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-09T11:27:14+00:00Added an answer on June 9, 2026 at 11:27 am

    Take a look at the schema_migrations table in your database. This is what Rails uses to determine which migrations to run. It has a single column containing each migration version Rails has applied to your application. For example, I have the following file in db/migrate:

    • 20110415064108_create_users.rb

    20110415064108 is listed as a row in my schema_migrations table. The same goes for every other migration file in db/migrate that existed since I last ran rake db:migrate.

    Assuming taps (which I know nothing about) pushed this schema_migraions table in its entirety to production, you should be able to create new migrations and run them with rake db:migrate in production without trouble (only those newly created migrations will be applied, since their version #s are the only ones missing from the production schema_migrations table).

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

Sidebar

Related Questions

I accidentally deleted hadoop.tmp.dir, in my case /tmp/{user.name}/*. Now everytime when I run hive
A while ago, I was writing some code, but accidentally deleted some good code
I tried looking for the answer but didn't find it. I accidentally deleted my
I accidentally deleted some rows from the database. But I already have daily database
I accidentally deleted a SVN tag. Is it possible to recreate this tag easily
I accidentally deleted a table in my mysql database. After that I've restored this
I recently deployed my rails app on Heroku. In the process I accidentally deleted
I accidentally deleted /usr/sbin/a2ensite. Any way I can restore it? Tried sudo apt-get install
I accidentally deleted the Apple submission certificate in the Keychain, now whenever I run
The config directory for rails was accidentally deleted. Now any attempt to run rails

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.