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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:51:50+00:00 2026-06-13T23:51:50+00:00

Saw How to customize Gemfile per developer? , but it didn’t really do what

  • 0

Saw How to customize Gemfile per developer?, but it didn’t really do what I want and it is old.

Use case: I want to use Postgres and other developers are using SQLite.

One solution is to modify my Gemfile and not commit it, but then it will be out of sync if anyone makes any changes to it. And it will get accidentally committed after a while anyway.

Is there a clean way to remove the SQLite gem and add the Postgres gem in my environment, without affecting other developers’ environments and other gems in the Gemfile?

FWIW, these changes only affect development and test environments. Not staging or production.

Or, perhaps it isn’t necessary to change the Gemfile at all. Is it possible to install both gems and switch on the db config file? If so, how to set up a per-developer db config?

EDIT: Changing the Gemfile is not necessary. Just install the pg gem and change database.yml config file.

  • 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-13T23:51:51+00:00Added an answer on June 13, 2026 at 11:51 pm

    The correct approach for your case is to include all gems used by any developer in the gemfile and have a separate database.yml file per developer. You can simply leave database.yml as non-source-controlled, and provide a sample config file (database.yml.sample) for developers to copy and modify to their environment as needed.

    As others have pointed out, using different databases among developers is not very good practice as these differences can have unintended consequences in the non-original environment. In a case where you need to support multiple databases, this may not be a bad idea, but in such a case, each developer should have access to all the target database systems so that across-the-board testing can be done by everyone.

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

Sidebar

Related Questions

I saw the docs on the Instagram developers page. http://instagram.com/developer/endpoints/ But I want to
I saw many threads with this tittle, but no one really speak about reuse
I saw some websites that (for example): if you want to view your message
I saw some code when studying the open source project: here . But I
I want to use ms sql 2005 to send email reminders to my customers.
I saw an example on the web but now cannot find it any more.
I saw this answer to a similar question , but it always scares me
I want to customize the default error message This field is required when using
Am wondering if there is any applet which I can use and customize to
I've been trying to learn how to use the ActionbarSherlock to customize my application

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.