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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:11:33+00:00 2026-05-29T22:11:33+00:00

We have around 100 database migration files. Many of them make schema changes which

  • 0

We have around 100 database migration files. Many of them make schema changes which are irreversible. There are also later migrations which change or remove tables which were created in earlier migrations.

We are creating new databases straight from the schema.rb file, so we were wondering if there is any reason to keep the full set of migrations?

We would create a new migration which is based on our existing schema.rb.

  • 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-29T22:11:35+00:00Added an answer on May 29, 2026 at 10:11 pm

    Yes, what you’re proposing is considered a best practice.

    I’ve done this with my old apps several times. You’ll want to back your migrations up somewhere until you’re satisfied all is well, of course, this is an important part of application maintenance – if you have a lot of old migrations, it can take forever to do a db:reset or to get a new development environment running.

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

Sidebar

Related Questions

I have about 20 .csv files which are around 100-200mb each. They each have
We have a live MySQL database that is 99% INSERTs, around 100 per second.
I have around 100 rows of text that I want to tokenize, which are
I have some 50 pages of html which have around 100-plus rows of data
Consider a database(MSSQL 2005) that consists of 100+ tables which have primary keys defined
I have around 100 computers and few workers on each of them. The already
So, I have a database with around 100 audit tables and I want to
I'm currently have around 100 rows in a table on my website, which include
I have some legacy DB with many tables (around 100) the old system is
I have around 1000 pdf filesand I need to convert them to 300 dpi

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.