class ActiveRecord::ConnectionAdapters::SchemaCache

def columns_hash?(table_name)

Checks whether the columns hash is already cached for a table.
def columns_hash?(table_name)
  @columns_hash.key?(table_name)
end