2019-07-02 08:10:25 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ApplicationRecord < ActiveRecord::Base
|
2021-02-09 19:38:10 +00:00
|
|
|
connects_to database: {
|
2021-02-15 23:26:00 +00:00
|
|
|
writing: :primary,
|
2021-02-09 19:38:10 +00:00
|
|
|
reading: :slave1
|
|
|
|
}
|
2019-07-02 08:10:25 +01:00
|
|
|
self.abstract_class = true
|
|
|
|
include Remotable
|
|
|
|
end
|