Rails Just Made Your Database Agent-Ready - YouTube

15-May-2026 313
Rails just shipped `rails query` — a new CLI command that lets you run read-only database queries and get back structured JSON. No more parsing `rails runner` output. No accidental writes. Built for AI agents, scripts, and production tooling. In this video I cover everything that shipped in PR #57156 — ActiveRecord queries, raw SQL, schema introspection, pagination, EXPLAIN, write protection, multi-database support, and how to pipe the output directly into `jq` or any agent workflow.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle