mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Allow the connection pool's #table_exists? method to give the connections #table_exists? method a chance.
This commit is contained in:
committed by
Aaron Patterson
parent
1cc0c3f52c
commit
f960cb2832
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user