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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:13:07+00:00 2026-06-12T07:13:07+00:00

Say I create a branch ( new_branch ). In that branch, a migration (

  • 0

Say I create a branch (new_branch). In that branch, a migration (migration_1) is created.

Later, I switch back to master. I then create a migration (migration_2), push to Heroku, and run migrations on Heroku.

Later still, I merge new_branch into master, and then push master to Heroku.

When I try to run migrations on Heroku, won’t migration_1 be skipped over and not run, because it was created before migration_2, which has already been run?

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

    Each migration has a migration timestamp attached. The list of successfully applied migrations is stored in a schema table inside your Rails application.

    When you run migration_2, this entry is added to the database. When migration_1 is merged, Rails will detect the change has not been applied yet because the entry is missing in the schema table, and will run it.

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

Sidebar

Related Questions

A simple/newbie question. I create a branch from the master branch (say testing), tried
Say I created a feature-x branch and merged or rebased with master branch. Now
So say I have my master branch, and I create feature-x branch to work
Let's say I have a file in the master branch: Hello World! I create
I'd like to create a new master branch from an existing tag. Say I
Let us say I have a trunk and I create a branch (branch A)
Let's say I have a develop branch. I create a feature branch from this
I create a new branch in Git: git branch my_branch Push it: git push
Let's say I create two banches at the same time : hg branch branch-A
Say, if a project using Git is all committed, with master and foo branch

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.