Sha256: e17d8d23d79a32eb02cf4c518c1f40718fc3ede221dd0f579eca3770aa15e397
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
module ActiveRecord::Turntable class SeqShard < Shard private def retrieve_connection_pool ActiveRecord::Base.turntable_connections[name] ||= begin config = ActiveRecord::Base.configurations[Rails.env]["seq"][name] raise ArgumentError, "Unknown database config: #{name}, have #{ActiveRecord::Base.configurations.inspect}" unless config ActiveRecord::ConnectionAdapters::ConnectionPool.new(spec_for(config)) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems