Fix not actually connecting to the configured replica (#25977)
This commit is contained in:
parent
b923a4c755
commit
26e522ac55
3 changed files with 34 additions and 14 deletions
|
@ -5,6 +5,8 @@ class ApplicationRecord < ActiveRecord::Base
|
|||
|
||||
include Remotable
|
||||
|
||||
connects_to database: { writing: :primary, reading: :read }
|
||||
|
||||
class << self
|
||||
def update_index(_type_name, *_args, &_block)
|
||||
super if Chewy.enabled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue