:dbfile argument of config.enable_database now needs to be an absolute path
Reported by David Yerger | April 8th, 2009 @ 03:14 PM
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"
Comments and changes to this ticket
-
Jay Phillips April 23rd, 2009 @ 08:43 PM
- 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...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป