In the autogenerated .gitignore file (rails source = http://goo.gl/Pc6Sp), database.yml is NOT git ignored.
add “config/database.yml” to the .gitignore .gitignore.
keep generated “config/database.yml” the exact same - no change.
generate a new file, “config/database.yml.sample”, which would be presumably version controlled.
Also inlcude simple explanation for presence of database.yml/database.yml.sample, and strongly suggest not version controller actual database.yml.
If this sounds good, I’ll PR the code.