From f960cb2832beb0775e2dfcfffffed07c35eaef84 Mon Sep 17 00:00:00 2001 From: Ken Collins Date: Fri, 10 Jun 2011 13:15:58 -0400 Subject: [PATCH] Allow the connection pool's #table_exists? method to give the connections #table_exists? method a chance. --- .../connection_adapters/abstract/connection_pool.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index 6f21cea288..46d4cf4443 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -119,6 +119,7 @@ module ActiveRecord with_connection do |conn| conn.tables.each { |table| @tables[table] = true } + @tables[name] = true if !@tables.key?(name) && conn.table_exists?(name) end @tables.key? name