`establish_connection' undefined error

Hi,

Whenever I run

rake db:schema:dump

i get the following error

rake aborted!
undefined local variable or method `establish_connection' for
ActiveRecord::Base:Class

Please help me in this regard. My database is oracle.

This question would be better suited for the rubyonrails-talk mailing list, http://groups.google.com/group/rubyonrails-talk. Please ask again there.