[Rake-devel] 'rake db:create' gives "Unknown database" in rails 2.1
jim.weirich at gmail.com
Wed Jun 25 16:53:07 EDT 2008
On Jun 25, 2008, at 4:41 PM, Pp Junty wrote:
> 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.
Rake has no 'built-in' knowledge of rails or the 'config/initializers'
directory. Rake behavior in a rails project is completely controlled
by the rake tasks supplied with Rails. My guess is that this is more
of a Rails issue than a rake-devel issue.
-- Jim Weirich
-- jim.weirich at gmail.com
More information about the Rake-devel