Posted By: Dr Nic Williams
Date: 2006-07-24 01:03
Summary: Composite Keys for ActiveRecords
Project: Composite Primary Keys for ActiveRecords

Rails and ActiveRecord users have long wanted support for legacy databases; especially tables with composite primary keys. This gem enhances ActiveRecords to allow model classes to support 2+ primary keys, using the set_primary_keys(*keys) command.

Latest News
TZInfo::Data v1.2014.2 Released
    Philip Ross - 2014-03-25 22:32
TZInfo v0.3.39 Released
    Philip Ross - 2014-03-09 20:23
TZInfo::Data v1.2014.1 Released
    Philip Ross - 2014-03-09 20:00
Automatic Ruby 14.2.0 has been released!
    id 774 - 2014-02-26 06:23
kramdown 1.3.2 released
    Thomas Leitner - 2014-02-16 08:35

 

Forums | Admin

Discussion Forums: composite-keys-for-activerecords

Start New Thread Start New Thread

 

By: Dr Nic Williams
RE: Backport into Rails proper? [ reply ]  
2006-07-25 07:20
Rails is a small gem that has some dependencies on a few other useful gems: ActiveRecord, ActionPack, ActiveSupport. As Composite Keys aren't required to allow Rails to work, I doubt its necessary for Rails to auto-require Composite Keys (and thus have it download when you type "gem install rails" to upgrade).

It think in the short to medium term you'll be forced to type "gem install composite_primary_keys" manually to get updates. :)

Cheers
Nic

By: Daniel Berger
Backport into Rails proper? [ reply ]  
2006-07-24 15:15
Cool. Any chance of this getting into Rails core?