{"author_name":"tmtms","categories":["Ruby","Rails","Sequel"],"blog_url":"https://blog.tmtms.net/","description":"Rails \u3092\u3061\u3083\u3093\u3068\u4f7f\u3044\u59cb\u3081\u3066\uff14\u5e74\u306b\u306a\u308b\u3093\u3060\u3051\u3069\u3001\u672a\u3060\u306b Rails \u3068\u3044\u3046\u304b ActiveRecord \u304c\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3002 \u3053\u306e\u524d UNION ALL \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u3063\u3066\u30b0\u30b0\u3063\u305f\u308a AI \u306b\u805e\u3044\u305f\u308a\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u3001\u5225\u306a gem \u304c\u5fc5\u8981\u3068\u304b\u3001Arel \u3067\u66f8\u3051\u3068\u304b\u3070\u304b\u308a\u3067\u3001ActiveRecord \u30a4\u30de\u30a4\u30c1\u3060\u306a\u30fc\u3068\u601d\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u3061\u3083\u3093\u3068 API \u3092\u898b\u3066\u307f\u305f\u3089 with \u3092\u4f7f\u3048\u3070 UNION ALL \u304c\u4f7f\u3048\u308b\u3053\u3068\u3092\u77e5\u3063\u305f\u3002 https://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-with \u305f\u3068\u3048\u3070\u2026","provider_name":"Hatena Blog","height":"190","published":"2025-12-15 00:00:00","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/tmtms/","title":"Rails \u3067 UNION ALL","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/t/tmtms/20251130/20251130230903.png","blog_title":"tmtms \u306e\u30e1\u30e2","url":"https://blog.tmtms.net/entry/202512-rails-union","type":"rich","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F202512-rails-union\" title=\"Rails \u3067 UNION ALL - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}