<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>smartbank</author_name>
  <author_url>https://blog.hatena.ne.jp/smartbank/</author_url>
  <blog_title>inSmartBank</blog_title>
  <blog_url>https://blog.smartbank.co.jp/</blog_url>
  <categories>
    <anon>Engineering</anon>
  </categories>
  <description>はじめに スマートバンク 新春エンジニア駅伝 2026第15区走者のnagasawaです。 前区のcapytanさんの「SREが取り組むデプロイ高速化 ─ Docker Build時間を半分にした話」からタスキを受け取り、このブログではRailsにて継承関係にあるデータモデルをどのように扱ったかについて書いています。 Railsアプリケーションを開発していると、「似ているけれど、微妙に振る舞いが異なるモデル」の扱いに悩むことはありませんか？「共通のカラムは多いけれど、バリデーションやメソッドの中身だけが違う」「タイプによる条件分岐がいたるところに溢れかえっている」——そんな悩みに対する一つの解…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.smartbank.co.jp%2Fentry%2F2026%2F01%2F26%2F103000&quot; title=&quot;RDBとRailsで継承関係をどう扱うか ― ワンバンクに見るモデル設計の実例 - inSmartBank&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/smartbank/20260123/20260123113438.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-26 10:30:00</published>
  <title>RDBとRailsで継承関係をどう扱うか ― ワンバンクに見るモデル設計の実例</title>
  <type>rich</type>
  <url>https://blog.smartbank.co.jp/entry/2026/01/26/103000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
