ActiveRecord already implements this at the model level and also makes use of the ActiveRecord schema cache. `Database.table_available?` did not use this query cache and ended up sending *all* of those queries to Postgres every single time.
Settings::Base
SiteConfig
Settings::General