Merge remote-tracking branch 'parent/main' into kb_development
This commit is contained in:
commit
36f3bbb909
28 changed files with 135 additions and 92 deletions
|
@ -5,7 +5,7 @@ class ApplicationRecord < ActiveRecord::Base
|
|||
|
||||
include Remotable
|
||||
|
||||
connects_to database: { writing: :primary, reading: ENV['REPLICA_DB_NAME'] || ENV['REPLICA_DATABASE_URL'] ? :replica : :primary }
|
||||
connects_to database: { writing: :primary, reading: :replica } if DatabaseHelper.replica_enabled?
|
||||
|
||||
class << self
|
||||
def update_index(_type_name, *_args, &_block)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue