Closed johnnyt closed 11 years ago
When running in jRuby, the PostgreSQLAdapter does not have a query method. Changing this to execute and altering the map works in MRI and jRuby
query
execute
undefined method 'query' for <ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x7974c669> [project]/vendor/gems/spectacles/lib/spectacles/schema_statements/postgresql_adapter.rb:16:in `views' [project]/vendor/gems/spectacles/lib/spectacles/schema_dumper.rb:4:in `dump_views' [project]/vendor/gems/spectacles/lib/spectacles.rb:37:in `trailer' [home]/.rvm/gems/jruby-1.7.2@ballista/gems/activerecord-3.2.11/lib/active_record/schema_dumper.rb:28:in `dump' [home]/.rvm/gems/jruby-1.7.2@ballista/gems/activerecord-3.2.11/lib/active_record/schema_dumper.rb:21:in `dump' [home]/.rvm/gems/jruby-1.7.2@ballista/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:379:in `(root)' org/jruby/RubyIO.java:1183:in `open' [home]/.rvm/gems/jruby-1.7.2@ballista/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:378:in `(root)' org/jruby/RubyProc.java:249:in `call' org/jruby/RubyArray.java:1613:in `each' org/jruby/RubyArray.java:1613:in `each' org/jruby/RubyKernel.java:1046:in `load' Tasks: TOP => db:schema:dump (See full trace by running task with --trace)
If specs are passing, then I'm cool with it.
v0.1.0 and v0.1.0-java have been rolled and pushed to RubyGems. Update and let me know if you have any issues.
When running in jRuby, the PostgreSQLAdapter does not have a
query
method. Changing this toexecute
and altering the map works in MRI and jRuby