I am trying to upgrade a rails application from version 4.1.6 to 4.2.0. Almost everything is going well, except that I have two database connections (one of them is Postgres by default, and the other is used to read data from another legacy application). The second uses the Firebird (fb) adapter. In Rails 4.2, I cannot do anything with this second (fb) database. All commands result in this error:
NoMethodError: undefined `compile 'method for #
To reproduce this case, I created a new application from scratch using the 'fb' adapter and a simple model called Foo with two string columns. After I called from the rails console, the command Foo.count
result is the same.
Here is the complete call stack for the problem
I tried to research the sources, but I could not determine where the problem is. I think this is due to some changes / optimizations in activerecord in version 4.2, but I don’t know for sure.
Thank you in advance for any help.
source
share