---
title: "Discussion on \"Single Table Inheritance\" | Hashnode"
description: "Discussion on \"Single Table Inheritance\". What is Single Table Inheritance ?\n\nSingle Table Inheritance is a mechanism through which ActiveRecord can share fields and behavior between different models while using a single table.\n\nFor eg. let’s say we need to create a Vehicle model and Car mod..."
url: "https://hashnode.com/posts/single-table-inheritance/6839a7e84072d985bd1e558a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Single Table Inheritance](https://codingwithaglassofmilk.hashnode.dev/single-table-inheritance?utm_source=hashnode&utm_medium=feed)

What is Single Table Inheritance ? Single Table Inheritance is a mechanism through which ActiveRecord can share fields and behavior between different models while using a single table. For eg. let’s say we need to create a Vehicle model and Car mod...

May 30, 2025 · 2 min read · codingwithaglassofmilk.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#activerecord](https://hashnode.com/tag/activerecord)

## Written by

[Ashish Gaur](https://hashnode.com/@snyder91)

@snyder91

  
[View profile](https://hashnode.com/@snyder91)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
