If my code tries to access the database at "compile time", e.g.
defining methods based on values in a table, the rake db:create task
fails:

  rake aborted!
  #42000Unknown database 'xxx_development'

Why does the db:create task need to load the entire application in
order to create the database, instead of just reading database.yml?

I'm not the first to see this, e.g.
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/6c7b2901a6bc6cde/06e149bd53c650d8

and http://www.ruby-forum.com/topic/154561

Cheers
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to