Composite Primary Keys

Ruby on Rails does not support composite primary keys. This free software is an extension to the database layer of Rails – ActiveRecords – to support composite primary keys as transparently as possible.

Any Ruby script using ActiveRecords can use Composite Primary Keys with this library.

ActiveRecordで複合プライマリキーを使えるようにするgemだそうです。ポスグレとかOracleではパフォーマンス出るのかも。

has_many :throughやhabtmと相反する思想な気がして俺は嫌かも。

Comments


Option