---
title: "#sti articles | Hashnode"
description: "Explore 1 articles tagged #sti on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/sti"
---

Tag

# #sti

1 posts · 1 followers

[Xavier Noria](https://hashnode.com/@fxn) · [Oct 31, 2022](https://hashnode.com/posts/a-pattern-for-stis-in-rails/635fe4da982ebb40a7eaa15d)

### [A Pattern for STIs in Rails](https://fxn.hashnode.dev/a-pattern-for-stis-in-rails?utm_source=hashnode&utm_medium=feed)

The Problem Active Record provides STIs to easily work with hierarchies of (persisted) models. They have a few rough edges, however: Active Record needs to know the entire hierarchy to be able to build correct queries. This is at odds with lazy load...

3 min read · [fxn.hashnode.dev](https://fxn.hashnode.dev/a-pattern-for-stis-in-rails?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/a-pattern-for-stis-in-rails/635fe4da982ebb40a7eaa15d)
