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

  • Home
  • SEARCH
  • 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 8180511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:13:48+00:00 2026-06-07T00:13:48+00:00

If I have two migrations, the first one adds a column, and the second

  • 0

If I have two migrations, the first one adds a column, and the second one insert value into that column, would I still need to call reset_column_information manually at the end of first migration?

or rephrasing the question: is reset_column_information called automatically after each migration?


I am on Rails 3.2.3, and I believe it used to call reset_column_information after each migration. However recently I found out that some values are missing when I insert it into anewly created column. The two migrations are run during one rake task. I think this is a bug but just want some clarification.


Update:

I have created a demo app to demonstrate the issue: https://github.com/lulalala/migration-bug. The readme shows the step to prepare and reproduce it. I think it is probably a bug and have file it.

  • 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-07T00:13:49+00:00Added an answer on June 7, 2026 at 12:13 am

    According to this comment from Rails issues, Rails 3.2.6 only get a fresh copy of database scheme each time you run rake db:migrate. So runnning one migration at a time may help bypass the issue that some new column is not being updated.

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

Sidebar

Related Questions

I have several (old) Drupal-sites that need to be replaced with one single new
I have two migrations as below: CreateGroups t.string :name t.string :groupkey CreateEvents t.string :name
I have two migrations as below: CreateGroups t.string :name t.string :groupkey CreateEvents t.string :name
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes (MVC view model) which inherits from one abstract base class.
I have an AES encryption being made on two columns: one of these columns
If I have two migrations, mig1 and mig2, I run rake db:migrate, then I
I would like to introduce Code First Migrations to my project, but I am
I have the following two migrations already in my database: When I created Prices:
We have some web pages which have two frames, with one frame in the

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.