Topic: `establish_connection' undefined error please help

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.