In the autogenerated .gitignore file (rails source =<>),
database.yml is *NOT* git ignored.

I'd suggest
1) add "config/database.yml" to the .gitignore .gitignore.
2) keep generated "config/database.yml" the exact same - no change.
3) 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.

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouprubyonrails-core @
postedJan 11, '13 at 7:38a
activeJan 11, '13 at 7:46a



site design / logo © 2022 Grokbase