# Placing database.yml to svn

**URL:** <https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185>\
**Category:** Rails\
**Created:** [February 26, 2010, 9:27am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185 "2010-02-26T09:27:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 26, 2010, 9:27am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185/1 "2010-02-26T09:27:31Z")

</div>

Hi  
I would like to know is there any serious problem if committing  
database.yml file to svn? What I am currently doing is committing  
database.yml.sample file to svn. So an extra step needed in each  
production setup(locally example I have not deployed originally) that I  
have to edit mv database.yml.sample to dtabase.yml  
Please share your thoughts

Thanks  
Tom

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 26, 2010, 10:08am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185/2 "2010-02-26T10:08:24Z")

</div>

Hello,

I think it’s just an unnecessary step to rename your db config  
everytime… There’s no difference if its databse.yml or  
databse.yml.sample apart from that extra renaming step.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 26, 2010, 10:29am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185/3 "2010-02-26T10:29:29Z")

</div>

Actually, you may do as you do, except you should create database.yml  
file on the remote server and add it to ignore list at the SVN.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [February 26, 2010, 10:12am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185/4 "2010-02-26T10:12:30Z")

</div>

The only problem I see is that if you are working on a group, your  
database  
login will be exposed and you might annoy the other developer who had  
his/her own database.config

On Feb 26, 2010 5:07 PM, “Ugis Ozols” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Hello,

I think it’s just an unnecessary step to rename your db config  
everytime… There’s no difference if its databse.yml or  
databse.yml.sample apart from that extra renaming step.

On Feb 26, 10:27 am, Tom M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote: \> Hi \> I  
would like to know is there…

> Posted viahttp://www.ruby-forum.com/.

– You received this message because you are subscribed to the Google  
Groups  
“Ruby on Rails: Talk”…
