<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu" -->

---
title: JSON schema cache, herb:check, and more! | daily.dev
description: A weekly roundup of Ruby on Rails framework changes covers Active Record schema caches that can now dump to JSON (about 22x faster loading than YAML on a...
canonical: https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JSON schema cache, herb:check, and more! | daily.dev
og:description: A weekly roundup of Ruby on Rails framework changes covers Active Record schema caches that can now dump to JSON (about 22x faster loading than YAML on a...
og:url: https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu
og:image: https://api.daily.dev/og/posts/TYIhJ9OQu.png
og:image:alt: JSON schema cache, herb:check, and more!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON schema cache, herb:check, and more!

**[Rails](https://daily.dev/sources/rails)** · 3 min read · 1 upvotes · 0 comments

## Summary

A weekly roundup of Ruby on Rails framework changes covers Active Record schema caches that can now dump to JSON (about 22x faster loading than YAML on a 944-table production app), a new herb:check rake task for validating HTML+ERB templates, fixes to PostgreSQL index and constraint introspection so unqualified table names resolve correctly, a primary key introspection fix for covering indexes, Active Storage boot fixes when libvips is missing or unsupported, preserved key ordering in read_multi with local cache, a new config.active_storage.draw_direct_upload_route option, default security headers now included in ActionController::Live responses, and deprecation of supports_datetime_with_precision? since all supported databases now support datetime precision.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubyonrails.org/2026/9/18/this-week-in-rails>

## Questions this post answers

### How do I make Active Record dump the schema cache as JSON instead of YAML in Rails?

Point the schema_cache_path configuration at a file ending in .json and Active Record will dump and load the schema cache in JSON instead of YAML or Marshal. On a production app with 944 tables, JSON loaded roughly 22 times faster than YAML, making it a strong option for large schemas where boot time matters.

_Rails developers tuning app boot times can follow framework-level performance changes like this on daily.dev._

### Why does Rails Active Storage fail to boot when libvips is missing or an unsupported version is installed?

Older Rails versions raised a hard boot failure when ruby-vips could not be loaded or when an installed libvips version was unsupported, even for apps not using the vips processor. Two fixes now treat a LoadError from ruby-vips as unavailable (booting with a warning instead) and only enforce the unsupported-version check when the vips processor or analyzer is actually used, so mini_magick-based apps boot normally.

_Teams debugging Active Storage boot failures can track these Rails fixes through daily.dev._

### Why did PostgreSQL primary key introspection in Rails show extra columns for covering indexes?

Rails read primary key columns from pg_index.indkey, which includes non-key columns added via the INCLUDE clause of a covering index, causing those extra columns to appear as part of the primary key and become non-writable during bulk upserts. The fix reads primary keys from pg_constraint.conkey instead, the constraint's own ordered column list, which excludes INCLUDE columns.

_Developers relying on PostgreSQL covering indexes with Rails can follow schema introspection fixes like this on daily.dev._

## Similar posts on daily.dev

- [Agents on Rails, query method and more](https://daily.dev/posts/agents-on-rails-query-method-and-more-qvbubxxei) · This Week in Rails · 0 upvotes · 0 comments
- [Schema-Enforced JSON Access, Postgres Type Decoding, and more](https://daily.dev/posts/schema-enforced-json-access-postgres-type-decoding-and-more-imamm5zrx) · Rails · 0 upvotes · 0 comments
- [This Week in Rails: Better Guides, Better Framework](https://daily.dev/posts/this-week-in-rails-better-guides-better-framework-cc7vjcik2) · Ruby Flow · 0 upvotes · 0 comments
- [No tricks, just treats](https://daily.dev/posts/no-tricks-just-treats-vwr2jfi0m) · This Week in Rails · 0 upvotes · 0 comments
- [This Week in Rails: August 28, 2026](https://daily.dev/posts/this-week-in-rails-august-28-2026-kighrmzea) · Rails · 3 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails)

[View this post on daily.dev](https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"JSON schema cache, herb:check, and more!","url":"https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu"},"datePublished":"2026-09-18T15:56:31.928Z","dateModified":"2026-09-18T15:56:53.393Z","description":"A weekly roundup of Ruby on Rails framework changes covers Active Record schema caches that can now dump to JSON (about 22x faster loading than YAML on a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e4f5a3c3e5361719ef48f4eb467a7f8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Rails","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Rails","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d44501fa43a2441a9e27a08367cdfa52","url":"https://daily.dev/sources/rails"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"postgresql,ruby,rails","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rails","item":"https://daily.dev/sources/rails"},{"@type":"ListItem","position":3,"name":"JSON schema cache, herb:check, and more!"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/json-schema-cache-herb-check-and-more--tyihj9oqu#faq","mainEntity":[{"@type":"Question","name":"How do I make Active Record dump the schema cache as JSON instead of YAML in Rails?","acceptedAnswer":{"@type":"Answer","text":"Point the schema_cache_path configuration at a file ending in .json and Active Record will dump and load the schema cache in JSON instead of YAML or Marshal. On a production app with 944 tables, JSON loaded roughly 22 times faster than YAML, making it a strong option for large schemas where boot time matters. Rails developers tuning app boot times can follow framework-level performance changes like this on daily.dev."}},{"@type":"Question","name":"Why does Rails Active Storage fail to boot when libvips is missing or an unsupported version is installed?","acceptedAnswer":{"@type":"Answer","text":"Older Rails versions raised a hard boot failure when ruby-vips could not be loaded or when an installed libvips version was unsupported, even for apps not using the vips processor. Two fixes now treat a LoadError from ruby-vips as unavailable (booting with a warning instead) and only enforce the unsupported-version check when the vips processor or analyzer is actually used, so mini_magick-based apps boot normally. Teams debugging Active Storage boot failures can track these Rails fixes through daily.dev."}},{"@type":"Question","name":"Why did PostgreSQL primary key introspection in Rails show extra columns for covering indexes?","acceptedAnswer":{"@type":"Answer","text":"Rails read primary key columns from pg_index.indkey, which includes non-key columns added via the INCLUDE clause of a covering index, causing those extra columns to appear as part of the primary key and become non-writable during bulk upserts. The fix reads primary keys from pg_constraint.conkey instead, the constraint's own ordered column list, which excludes INCLUDE columns. Developers relying on PostgreSQL covering indexes with Rails can follow schema introspection fixes like this on daily.dev."}}]}
```

