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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:22:29+00:00 2026-05-28T03:22:29+00:00

I got an app running in production on heroku, but there is a problem

  • 0

I got an app running in production on heroku, but there is a problem with the schema_migrations table.

The last migration changes are present at the db/schema.rb file, but there is no entry for this migration in the schema_migrations table.

So when running rake db:version I got the number corresponding to the migration executed before this last migration.

I believe i should add an entry for this migration on schema_migrations table, but i am not sure of how to do this without affecting the date on my database, and remotely on heroku.

  • 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-05-28T03:22:30+00:00Added an answer on May 28, 2026 at 3:22 am

    I had a similar problem, where I had no migrations in my schema_migrations table. So I had to run this:

    Dir.open('db/migrate').each do |fname|
        i = fname.split('_').first.to_i
        next if i == 0
        ActiveRecord::Base.connection.execute("INSERT INTO schema_migrations (version) VALUES(#{i})")
    end
    

    source

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

Sidebar

Related Questions

I've got this app running in development just right, but when I deploy the
I've got a Rails app running on Heroku and installed the free pgbackups addon.
There is sometimes a problem with running out of memory when it got fragmented.
I got an app running on my SQL Server that is starting to slow
I've got an app running maximized in a borderless window and need access to
I’ve got an SVN hook written as a .NET console app and running on
I've got a Rails app that's been running live for some time, and I'm
Running my finished Rails Tutorial app through Rails Best Practices got me a warning
I've got a Flex App running at 100% width and 100% height. The embed
So I got my app up and running on my iPad so I can

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.