activerecord-jdbc-adapter: 'activerecord-jdbcpostgresql-adapter' not compatible with ActiveRecord 5
After I migrate to Rails 5.0.0.beta1 when I run rake db:rollback STEP=1
, I got the following in my CLI. But when I fallback to Rails 4.2.5, everything’s fine. Maybe the gem is not compatible with activerecord 5.0.0.beta1
. Any temporary solution to this or we have to wait for a next release? Thanks.
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from each at /Users/Nostophilia/.rvm/gems/jruby-9.0.4.0@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:1)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top> at /Users/Nostophilia/.rvm/gems/jruby-9.0.4.0@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:1)
rake aborted!
NameError: uninitialized constant ActiveRecord::ConnectionAdapters::Column::TRUE_VALUES
/Users/Nostophilia/.rvm/gems/jruby-9.0.4.0/gems/activerecord-jdbc-adapter-1.3.19/lib/arjdbc/jdbc/type_cast.rb:9:in `<module:TypeCast>'
blah..blah
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 45 (17 by maintainers)
Commits related to this issue
- try getting Rails 5 running on JRuby https://github.com/jruby/activerecord-jdbc-adapter/issues/700 — committed to activeadmin/activeadmin by seanlinsley 8 years ago
- allow JRuby to fail on Rails 5 the previous commit tried using the ActiveRecord adapter gem from Github / master as mentioned here: https://github.com/jruby/activerecord-jdbc-adapter/issues/700, but ... — committed to activeadmin/activeadmin by seanlinsley 8 years ago
- Hack support for Rails 5 with Jruby See https://github.com/jruby/activerecord-jdbc-adapter/issues/700 which is unresolved since December 2015, but closed. A branch exists and we can try using that t... — committed to atomaka/delayed_job by atomaka 7 years ago
- Hack support for Rails 5 with Jruby See https://github.com/jruby/activerecord-jdbc-adapter/issues/700 which is unresolved since December 2015, but closed. A branch exists and we can try using that t... — committed to atomaka/delayed_job by atomaka 7 years ago
- travis: allow JDBC PostgreSQL tests to fail See https://github.com/jruby/activerecord-jdbc-adapter/issues/700. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org> — committed to killbill/killbill-admin-ui by pierre 7 years ago
- circle: actually test against Rails 5.0 Looks like we forgot to include the Rails 5.0 step. Note that we don't test on JRuby because of a bug in activerecrod-jdbc-adapter. https://github.com/jruby/a... — committed to airbrake/airbrake by kyrylo 5 years ago
The following worked for me on a new Rails 5.0.1 project with SQLite and JRuby 9.1.7.0
@jrochkind we will be releasing something before rubyconf for sure (which is next week). We are down to <10 F/E across all three big adapters (sqlite3, mysql, and postgresql) on all AR tests. We are still trying to knock those down and then it is just dealing with some packaging cleanup tasks.
For people following we are actively working on this now and we should have a release out by Rubyconf timeframe. On the rails5 branch, sqlite3 adapater is down to 5E/5F and once we figure out a couple of more things then all the other adapters should get updated fairly quickly.
this issue is still occurring in rails 5.1.1
@platbr That syntax is suboptimal.
Mine works using:
jruby 9.0.5.0. I got a null point exception on 9.1.5.0.
This issue is closed as the “alias_method_chain” issue was solved (with
rails-5
branch).