简体   繁体   中英

How to use Firebird with Rails 4.2

I am trying to update my rails application from version 4.1.6 to 4.2.0. Almost all are going well, except that I have two database connections (one is the default Postgres and other is used for reading data from another legacy application). The second uses Firebird (fb) adapter. In Rails 4.2 I cannot do anything with this second (fb) database. All commands result in this error:

NoMethodError: undefined method `compile' for #

To reproduce the case, I created a new application from scratch using adapter 'fb' and a simple model called Foo with two string columns. After I called from rails console the command Foo.count the result is the same.

Here is the full call stack for the problem

I tried to investigate the sources but I could not determine where is the problem. I think it has due to some changes/optimizations in activerecord in version 4.2 but I don't know exactly.

Thanks in advance by any help.

根据这个封闭的问题 ,Gem activerecord-fb-adapter版本1.0.1现在支持rails ~>4.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM