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.