RubyGems.org

ActiveRecords only support a single primary key, preventing their use on legacy databases where tables have primary keys over 2+ columns. This solution allows an ActiveRecord to be extended to support multiple keys using the class method set_primary_keys.

installgem install composite_primary_keys -v 0.7.1
Authors

Dr Nic Williams

437,350 total downloads 1,745 for this version
Owners

D86b463633abac022c399a596d956cebCb2b768a5e546b24052ea03334e43676C82630c82a3c675d2928804f432fcf17Bac13b2fec9996d933e9a95ff4ccf5776190ccd07d6f6984639bcece3543b5a9Ff880f3622a3ecd57d5e8d8721e4ef35

Gemfile
gem 'composite_primary_keys', '~> 0.7.1'
Versions
  1. 7.0.10 August 7, 2014 (61 KB)
  2. 7.0.9 August 3, 2014 (60.5 KB)
  3. 7.0.8 August 3, 2014 (60.5 KB)
  4. 7.0.7 July 29, 2014 (60.5 KB)
  5. 7.0.6 July 22, 2014 (60 KB)
Show all versions (111 total)
Runtime Dependencies
  1. activerecord >= 1.14.3