RailsでClass Table Inheritance

One of my (very few) complaints about the Ruby on Rails framework--specifically ActiveRecord--has always been the lack of support for Class Table Inheritance (CTI). It does have support for Single Table Inheritance (STI), which is fine for some situations; but STI fails you when your leaf classes each have number of attributes which they do not share in common.

ちゃんと読んでないけど上の記事はPostgreSQLの機能を使って実現するんだそうです。これをやるかどうかはともかく、僕もCTIを使いたいです。Hibernateで使ったときは結構便利でした。STIは最初から派生クラスが全部分かってないと後からカラムを追加していかなきゃならなくなるわけですが、CTIなら後から派生クラスを追加しても影響が局所化できるのが良いのです。でもその分SQLが、特にSELECT文が複雑に特になるのでO/Rマッパーに頑張ってもらえるとすごく有難いんだけどなー。