Sha256: c84f899e7c0855a6bfeb2eebe9505c3e56dab4b3c7f6d63815f611caf339ed3b

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

module ActiveRecordReplica
  # Class to hold replica connection pool
  class Replica < ActiveRecord::Base
    # Prevent Rails from trying to create an instance of this model
    self.abstract_class = true

    # Since this is an abstract class so it has no columns
    def self.columns
      []
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record_replica-3.0.0 lib/active_record_replica/replica.rb
active_record_replica-2.0.1 lib/active_record_replica/replica.rb