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
parent 8eb2b519f2
commit c791e2d034

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