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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:39:19+00:00 2026-05-27T03:39:19+00:00

In the rails db creation script schema.rb, there is this line at the top:

  • 0

In the rails db creation script schema.rb, there is this line at the top:

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

The docs (http://api.rubyonrails.org/classes/ActiveRecord/Schema.html) say that the
info hash param is optional

  • What is :version used for?
  • Is there any need for this number to be increasing on checkins? I.e., checkin later in the day makes the version number go down…
  • If there are migrations with timestamps greater than given, will they be run run simply because they are not in the migration table, yet the class file exists?
  • Are migration files run sequentially?
  • 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-27T03:39:19+00:00Added an answer on May 27, 2026 at 3:39 am

    The version is used to determine what migration was run last. This will only increase over time. The migration you’ve run here was created (not run) on the 27th November, 2011 at 09:05:05AM in UTC time. This is what the number is: a timestamp.

    The number will increase every time you run a newly created migration, this is so Rails will know which one has run last and which one to run next. The next migration to be run will be the one with the first one with the greater number than this number.

    And yes, migration files are run in the order they are created.

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

Sidebar

Related Questions

I'm using dwilkie's foreigner plugin for rails. I have a table creation statement that
Rails uses the concept of migrations to deal with model changes using the ActiveRecord
Rails caches (file cache) per default domain-based, but is there a way to disable
I've got a model creation form in rails which I also have returning JSON
I am using the following gem in my rails application: http://github.com/fnando/post_commit I am trying
In rails 2.x I could pass on a --git option to ./script/generate to add
(Here's my requisite line about being new to ruby/rails and programming in general; first
I am following this tutorial book that involves signing up and user creation for
What is a good way to implement multistep creation of a model in rails?
What is a good way to implement multistep creation of a model in 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.