title: how to check the database name that ActiveRecord uses
body: <p>In database.yml you define all the settings. How can I access those settings from ruby? I've looked in <code>App::Application::config</code>, but can't find it there. Also, I remember people were able to configure database settings without yaml, does anyone know how?</p>