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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:55:25+00:00 2026-06-09T00:55:25+00:00

I have been developing different java web based applications. As a junior-mid level developer

  • 0

I have been developing different java web based applications. As a junior-mid level developer I spent my time mostly dealing with development data only in which it is not that much of a big deal erasing data, adding test data and so on. But now, I am doing a side project using Ruby on Rails by my own and responsible for every development stages and data (i.e on dev, prod, and test). Even at this stage I was sometimes erasing prod data (which is on Heroku) and re populating it using “db:populate” that is provided by Rails framework. However, the system is going live after a month (to hear feedback from users) and I know I won’t have the option of erasing data if something went wrong from now on.

Based on your experience, what precautions should I take when something is wrong with real production data?

  • 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-09T00:55:26+00:00Added an answer on June 9, 2026 at 12:55 am
    1. Write a class that can check Aspect X of the data and figure out what data is bad.
    2. Write a class that can fix the bad Aspect X data.
    3. Write tests for the class that create bad data and assert that after running the fixer, the data is good.
    4. Create a copy of your production database and a copy of your application pointed to the copy of your production database (on Heroku this is easy).
    5. Run the fixer class on the copy of the production database, and then verify with the checker class that the data is good. Also verify that the data is good by hand. You can do this from a console session via heroku run console.
    6. Run the fixer class on the live copy of the production database, again verifying that the data is good.

    Sometimes, you can use a class which is also an ActiveRecord Migration. But this will not always work out, and sometimes you must simply use a normal class you write from scratch yourself.

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

Sidebar

Related Questions

I have been developing web applications for some time but have very recently been
I've been developing Web applications for a while now and have dipped my toe
I have been developing an user interface with Java Swing, and I have met
I have been developing a small Java utility that uses two frameworks: Encog and
I have been developing my webapp with a certain zoom level on firefox that
I have been developing pages and web parts in SharePoint 2007/2010 for the past
I have been developing some Django app and there's some duplicated code for different
I have been developing my own PHP MVC framework. Now I have seen different
Okay, so I have been developing in Java for a little over a year
I have been developing web apps (primarily) using php and a bit of python,

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.