customink / secondbase

Seamless second database integration for Rails.
MIT License
220 stars 31 forks source link

Does not work with Rails 5.1 #44

Closed GuskiS closed 7 years ago

GuskiS commented 7 years ago

Not sure why, but doesn't work with Rails 5.1.

ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "my_table" does not exist ... )

I tries to use PG but it should be mysql.

cw-octanner commented 7 years ago

I'm seeing this as well. Even doing a .connect query on the SecondBase::Base class runs on the first db and not the second. Rollback to Rails 5.0.2 works fine again.

metaskills commented 7 years ago

I'll find some time to play with this soon. One thing I noticed today. First PR never made it into Rails core:

aronwolf90 commented 7 years ago

not sure, but maybe it fix it https://github.com/customink/secondbase/pull/48

metaskills commented 7 years ago

Published v2.1.4 with Rails v5.1 fixes. Thanks!