Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tompurl/2772972 to your computer and use it in GitHub Desktop.
Save tompurl/2772972 to your computer and use it in GitHub Desktop.
Error when using schema_plus with Rails 3.2.3 and Jruby
NameError: method 'indexes' not defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
from org/jruby/RubyModule.java:2317:in `remove_method'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/postgresql_adapter.r
b:52:in `included'
from org/jruby/RubyModule.java:2277:in `module_eval'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/postgresql_adapter.r
b:51:in `included'
from org/jruby/RubyModule.java:2118:in `include'
from org/jruby/RubyBasicObject.java:1704:in `__send__'
from org/jruby/RubyKernel.java:2101:in `send'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/abstract_adapter.rb:
36:in `initialize_with_schema_plus'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/adapter.rb:35:in `initialize'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connect
ion'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/postgresql/connection_methods.rb:15:in `postg
resql_connection'
from org/jruby/RubyBasicObject.java:1704:in `__send__'
from org/jruby/RubyKernel.java:2101:in `send'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:303
:in `new_connection'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:313
:in `checkout_new_connection'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:237
:in `checkout'
... 13 levels...
NameError: method 'indexes' not defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
from org/jruby/RubyModule.java:2317:in `remove_method'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/postgresql_adapter.r
b:52:in `included'
from org/jruby/RubyModule.java:2277:in `module_eval'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/postgresql_adapter.r
b:51:in `included'
from org/jruby/RubyModule.java:2118:in `include'
from org/jruby/RubyBasicObject.java:1704:in `__send__'
from org/jruby/RubyKernel.java:2101:in `send'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/schema_plus-0.3.4/lib/schema_plus/active_record/connection_adapters/abstract_adapter.rb:
36:in `initialize_with_schema_plus'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/adapter.rb:35:in `initialize'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connect
ion'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-jdbc-adapter-1.2.2/lib/arjdbc/postgresql/connection_methods.rb:15:in `postg
resql_connection'
from org/jruby/RubyBasicObject.java:1704:in `__send__'
from org/jruby/RubyKernel.java:2101:in `send'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:303
:in `new_connection'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:313
:in `checkout_new_connection'
from /home/tom/.rvm/gems/jruby-1.6.7.2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:237
:in `checkout'
... 13 levels...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment