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.

:dbfile argument of config.enable_database now needs to be an absolute path

#65

For the Sqlite3 adapter at least--

Used to have

config.enable_database :adapter => "sqlite3",

                     :dbfile => "models/blah.sqlite3"

in config/startup.rb.

Now I find that unless I run ahnctl from the toplevel directory, I need

config.enable_database :adapter => "sqlite3",

                     :dbfile => "/usr/local/blah/models/blah.sqlite3"

Reported by David Yerger · April 8th, 2009 @ 03:14 PM

State: resolved
Milestone: none
Assigned to: Jay Phillips Jay Phillips

Activity

  1. Jay Phillips
    Jay Phillips
    • State changed from new to resolved

    You could do something like this:

    :dbfile => File.dirname(FILE) + "/../models/blah.sqlite3"

    Because this is an ActiveRecord issue, I don't really know that there is much I can do about it...

    April 23rd, 2009 @ 08:43 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.