[Rake-devel] 'rake db:create' gives "Unknown database" in rails 2.1
ppjunty07 at gmail.com
Wed Jun 25 16:41:41 EDT 2008
the task rake db:create stopped working since i updated rails
from 2.0 to 2.1.0. the problem is that now
rake is loading the files in the 'config/initializers' directory,
and one of the files has database operations, so as the database
is not created yet the 'db:create' task halts. i commented
the db calls and the database was created normally.
i checked the rake version and apparently it's the same
in both rails versions (1.8.1). does anyone know how
to avoid this? thanks a lot.
More information about the Rake-devel