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.

[1] http://tinyurl.com/ddxkr9

Reported by Nick Hoffman · March 10th, 2009 @ 04:54 PM

State: wontfix
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user set to josh
    • State changed from new to wontfix

    This shouldn't be relevant anymore with AMo.

    June 21st, 2009 @ 10:12 PM