Replace Makara with an initial Rails 6 role based splitting method.
This commit is contained in:
committed by
admin
parent
31922ea58b
commit
473c48b2aa
@@ -1,6 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
connects_to database: {
|
||||
writing: :master,
|
||||
reading: :slave1
|
||||
}
|
||||
self.abstract_class = true
|
||||
include Remotable
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user