iA


"select_rows is an abstract method" during "rake db:migrate"

by Vijay Kiran

After successfully building a couple of applications in RoR with SQLite3 and PostgreSQL, I’m now trying to use Oracle as the database for Ruby on Rails application. When I tried db:migrate I ran into an error that said select_rows implementation is not available in oracle_adapter.rb.

After searching for a patch in the RoR Trac, the error is finally resolved. And here the file that fixed the error.

Make sure that you installed activerecord-oracle-adapter gem and replace the oracle_adapter.rb with the file attached with this post.

$RUBY_HOME\lib\ruby\gems\1.8\gems\
activerecord-oracle-adapter-1.0.0\lib\
active_record\connection_adapters