Cookie Session store used during db:migrate?


My session store is java_servlet_store but when i do jruby -S rake
db:migrate it searches for cookie store:

jruby -S rake db:migrate
(in /myWorkspace)
rake aborted!
A key is required to write a cookie containing the session data. Use
config.action_controller.session = { :key => “_myapp_session”, :secret
=> “some secret phrase” } in config/environment.rb

Why is this so?

When you’re running rake you’re not running a servlet container, so
isn’t a servlet store available.