Allow the connection pool's #table_exists? method to give the connections #table_exists? method a chance.

This commit is contained in:
Ken Collins
2011-06-10 13:15:58 -04:00
committed by Aaron Patterson
parent 1cc0c3f52c
commit f960cb2832

View File

@@ -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