title: Ignoring .gitignore config/database.yml in a rails project
body: <p>When working on rails project (I'm still in the "beginner" phase of learning at the moment by the way) the file config/database.yml seems to be the one where things like database passwords etc. go. However, nobody seems to recommend putting it in the .gitignore file - why? </p>
  
  <p>Surely I would need to exclude this or my sensitive database configuration details would end up being public knowledge if I pushed to github.</p>