Forum: Ruby on Rails documentation for database.yml?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
derek73 (Guest)
on 2009-06-02 11:33
(Received via mailing list)
can anyone point me to the documentation for the database.yml file?
Robert W. (Guest)
on 2009-06-02 19:39
derek73 wrote:
> can anyone point me to the documentation for the database.yml file?

I'm guessing your difficulty in finding documentation for the
database.yml file is that it's contents depend on what database adaptor
is being used.

For example, here's the documentation for an oracle-enhanced adaptor
from GitHub:

I'm not sure if there exists any generic documentation on this
configuration file. What I generally do is to just create a new Rails
project using whatever adaptor I plan to use. Then I just modify the
database.yml file that gets generated, if necessary.

But, you may still need to look for any documentation for the specific
adaptor you're planning to use.
Brian (Guest)
on 2009-06-02 19:53
(Received via mailing list)
Note that YAML is just a collection of serialized objects.  So each
adapter can use a completely different object for initialization.
Maybe this is obvious but as a new rails developer this didn't click
in place for me until I had to bring a DB online for testing a plugin.
This topic is locked and can not be replied to.