# Db implementation question

**URL:** <https://www.ruby-forum.com/t/db-implementation-question/143197>\
**Category:** Rails\
**Created:** [July 16, 2008, 7:15am UTC](https://www.ruby-forum.com/t/db-implementation-question/143197 "2008-07-16T07:15:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [July 16, 2008, 7:15am UTC](https://www.ruby-forum.com/t/db-implementation-question/143197/1 "2008-07-16T07:15:16Z")

</div>

Hi  
This is a database implementation question…I am currently using  
mydbname\_development  
mydbname\_test  
mydbname\_production in database.yml file…So now my requirement is  
suppose two (for example) companies use my application…And my purpose  
is to dynamically select separate databases for these two companies…For  
example company 1 uses say  
company1\_develeopment  
company1\_test  
company1\_production and company 2 uses  
company2\_develeopment  
company2\_test  
company2\_production and so on …So can I change db settings at  
database.yml dynamically( Am I right?)…Or is there any other  
method?Please help

Thanks in advance  
Sijo
