'No connection pool' Error after upgrading to Rails 7.1.3

11 views
Skip to first unread message

Mukul goyal

unread,
Feb 19, 2024, 10:09:50 AM2/19/24
to Public Activity
Hi Team,

We've custom sub class inheriting PublicActivity::Activity, where we've some custom methods defined something like as below

class CustomActivityLog < PublicActivity::Activity

  # some custom methods here

end

and we've been using PublicActivity::Activity indirectly via CustomActivityLog. And, we've been creating/updating activities using CustomActivityLog.

But, after upgrading to Rails 7.1.3, we've started getting below errors while using CustomActivityLog

ActiveRecord::ConnectionNotEstablished:

       No connection pool for 'CustomActivityLog' found for the '#<Role:0x000000012bf15b40>' role.


We're bound to continue using CustomActivityLog instead of changing our codebase to use PublicActivity::Activity as our codebase grew bigger over time.


Thanks in advance and any help would be really appreciated.


Thanks,

Mukul

Reply all
Reply to author
Forward
0 new messages