evilmartians / evil-seed

A Gem for creating partial anonymized dumps of your database using your app model relations.
MIT License
447 stars 19 forks source link

WIP: Try to fix ActiveRecord 4.2 on jRuby 9.2.5.0 but no luck yet #8

Closed Envek closed 2 years ago

Envek commented 5 years ago

Tried to solve the problem with JRuby discussed in https://github.com/evilmartians/evil-seed/pull/3#issuecomment-450672080 and https://github.com/evilmartians/evil-seed/issues/6

Still, it doesn't work

palkan commented 5 years ago

Ok, I found it.

This is a known issue (I reported it a while ago 😉): https://github.com/jruby/jruby/issues/5221.

JRuby cannot handle refinements in ancestors 😞

Envek commented 5 years ago

Ugh. That means that only choice we have is to drop refinements and use good old monkey patching ¯_(ツ)_/¯

Thanks for the investigation!

palkan commented 5 years ago

that only choice we have is to drop refinements and use good old monkey patching

Why not learning Java and contributing to JRuby?)

Envek commented 5 years ago

Why not learning Java and contributing to JRuby?)

There is also an option to rewrite gem to use SQL cursors and it is much simpler but still a lot of work :sweat_smile:

Envek commented 2 years ago

ActiveRecord 4.2 doesn't seem relevant anymore.