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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:58:20+00:00 2026-06-13T11:58:20+00:00

Here’s a bit of an odd question that’s partially covered in some other posts,

  • 0

Here’s a bit of an odd question that’s partially covered in some other posts, but not adequately answered directly. We have some migration version numbers in our schema_migrations database that were dumped in there at some point years ago by a ham-fisted plugin:

enter image description here

Ever since that fated day, our schema has looked like this:

ActiveRecord::Schema.define(:version => 20090409010513002) do

Since the migration version numbers are longs, Rails will ever assume that we are at a schema version created roughly 60 million years in the future.

Now, one would think, this is safe, given that the migration documentation says that the up method is called on all migrations that are not run on a given database will be run. This seems to be the case, since we have been creating migrations for the past 3 years and running them successfully. It appears that Rails is saying “You’re officially migrated to version 20090409010513002, but haven’t yet run migration (something in 2012), so I’ll run that and add it to the database.

My question is two-fold:

  1. Is there any hidden danger to the status quo? Things seem to be working well enough, but I want to know they will continue to do so.
  2. Since those extra-long migration numbers don’t actually have migration files attached to them (there is a file for 20090409010513, but neither for the 001 or 002 versions), is there any harm at all in deleting these rows, thereby having Rails realize the true latest migration?
  • 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-13T11:58:21+00:00Added an answer on June 13, 2026 at 11:58 am

    For the first question, one danger I can think of is that your db/schema.rb file won’t be as useful to figure out whether it corresponds to what’s in the database.

    For the second question – I’m assuming the screen shot is from your production database. What do you see in the schema_migrations table if you do rake db:setup in a development environment? If the schema_migrations table in development doesn’t have those two bogus entries, I think it’s probably safe to delete them from the production database.

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

Sidebar

Related Questions

Here is an object that I'd like to use with ng-repeat, but it's not
Here are some facts about my app followed by a question My app has
Here is the code: create table `team`.`User`( `UserID` bigint NOT NULL AUTO_INCREMENT , `Username`
Here is my SQL script CREATE TABLE tracks( track_id int NOT NULL AUTO_INCREMENT, account_id
Here's some sample HTML <style> .icon {display:none;} </style> <ul> <li>ABC <i id=abc class=icon>x</i></li> <li>DEF
Here is the final result of what my page is(not much fancy stuff yet):
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is the problem that I am trying to solve. I have two folders
I know there's a lot of other questions out there that deal with this
Here is my scenario. I have a website running under AppPool1 and that works

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.