diff --git a/lib/active_record/turntable/connection_proxy.rb b/lib/active_record/turntable/connection_proxy.rb index ebf52853..20268e5f 100644 --- a/lib/active_record/turntable/connection_proxy.rb +++ b/lib/active_record/turntable/connection_proxy.rb @@ -237,7 +237,7 @@ def supports_views?(*args) end def spec - @spec ||= master.connection_pool.spec + @spec ||= shards.values.first.connection_pool.spec end end end