Ignoring database.yml
This is something that should be done with all Rails apps as they are sucked into The Git for the first time: ignore the config/database.yml file. Even with as much as evangelism we do regarding using Capistrano, people will still choose to deploy the simplest way they know how, by cloning directly from GitHub to the server. This creates an undesirable effect once the database.yml file is modified to suit the environment... it is seen as a modification to the OneBody codebase. Changes to this file in the origin repository get pulled down on every update, causing problems. Unfortunately, we failed to ignore database.yml when we converted OneBody from Subversion to Git many months ago. So it has been in the repo, pointing to a SQLite db, causing problems for commiters and deployers. Now, we're biting the bullet and getting it done:
- We renamed database.yml to database.yml.example
- We added code to environment.rb that will copy the example config into place if no config exists.