This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
table_exists?(name)
public
A cached lookup for table existence.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 125
def table_exists?(name)
return true if @tables.key? name
with_connection do |conn|
conn.tables.each { |table| @tables[table] = true }
@tables[name] = true if [email protected]?(name) && conn.table_exists?(name)
end
@tables.key? name
end