Lighthouse has a new layout.
Prefer the old one? Return to the old layout,
and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
Crash during init if DB config doesn't exist
#2197
If a Rails application uses ActiveRecord but does not use a
database, Rails will crash during initialization because the
database config file does not exist.
If you're wondering why/how an application would use AR but not
use a database, have a look at Jonathan Viney's
ActiveRecord::BaseWithoutTable[1]. It's very useful.
I've attached a patch that causes Rails' initialization to check
for the existence of the database config file before attempting to
read the config and connect to the database.