Forum: Ruby on Rails documentation for database.yml?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bc713553ab4c9c8431fd5df6a01c9856?d=identicon&s=25 derek73 (Guest)
on 2009-06-02 09:33
(Received via mailing list)
can anyone point me to the documentation for the database.yml file?
280b78a61a968391b7e07e912be102a8?d=identicon&s=25 Robert Walker (robert4723)
on 2009-06-02 17: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:
http://wiki.github.com/rsim/oracle-enhanced/usage

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.
569a27ad404519fce3b23d3303894a7e?d=identicon&s=25 Brian (Guest)
on 2009-06-02 17: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.