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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:22:32+00:00 2026-06-08T21:22:32+00:00

I inherited a Rails project where the (SQLite) Dev and Test databases are the

  • 0

I inherited a Rails project where the (SQLite) Dev and Test databases are the same, as in the database.yml file.

Are there any advantages to this? Why would anyone do this?

  • 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-08T21:22:33+00:00Added an answer on June 8, 2026 at 9:22 pm

    The test database will get overwritten by the tests normally (unless you use transactional fixtures). If test and development databases are the same, your data will be erased every time you run your test suite. Development data may interfere with the test suite and make it unrealiable.

    I would cleary consider this a design mistake. There is no reason, you should ever do this. Even the database.yml in a freshly created rails app states:

    # Warning: The database defined as "test" will be erased and
    # re-generated from your development database when you run "rake".
    # Do not set this db to the same as development or production.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've inherited a Rails project, and am fighting with how to deal with a
Alright. First off, I am new to Rails and this is the first project
I'm using Rails 3.1.3 for a project with Inherited Resources 1.3.0. When I have
I recently inherited an e-commerce app (Java/Struts) that I'm porting to Rails. The thing
I inherited an Intraweb app that had a 2MB text file of memory leaks
Ive inherited some code which started out as an Android project but really is
Is there a product/project that would allow you to define conventions for say an
I inherited a Rails 2.2.2 app that stores user-uploaded images on Amazon S3. The
I have just inherited a medium sized Rails application and I want to try
I'm doing maintenance work on a Rails site that I inherited; it's driven by

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.