Closed jweslley closed 3 years ago
Since Rails 6.1+, the connects_to method can only be called on ActiveRecord::Base or abstract classes, otherwise, a NotImplementedError will be thrown.
connects_to
This PR creates a hook to allow connecting to a distinct database, other than the main one.
Since Rails 6.1+, the
connects_to
method can only be called on ActiveRecord::Base or abstract classes, otherwise, a NotImplementedError will be thrown.This PR creates a hook to allow connecting to a distinct database, other than the main one.