public
Description: Composite Primary Keys support for Active Record
Homepage: http://compositekeys.rubyforge.org
Clone URL: git://github.com/drnic/composite_primary_keys.git
Search Repo:
name age message
folder .gitignore Sat Jun 07 10:27:35 -0700 2008 fix has many through when through association h... [Darrin Holst]
folder History.txt Tue Jul 15 18:31:48 -0700 2008 release new version for oracle_enhanced support [darrinholst]
folder Manifest.txt Thu Jun 05 18:03:46 -0700 2008 merge from darrinholst/composite_primary_keys f... [Darrin Holst]
folder README.txt Wed Aug 15 01:23:46 -0700 2007 Refactoring Rakefile into local + tasks folders... [nicwilliams]
folder README_DB2.txt Wed Aug 15 01:23:46 -0700 2007 Refactoring Rakefile into local + tasks folders... [nicwilliams]
folder Rakefile Thu Jun 05 18:03:46 -0700 2008 merge from darrinholst/composite_primary_keys f... [Darrin Holst]
folder init.rb Thu Aug 16 01:52:14 -0700 2007 init.rb file so gem can be installed as a plugi... [nicwilliams]
folder install.rb Thu Jul 20 00:59:30 -0700 2006 Initial [nicwilliams]
folder lib/ Tue Jul 15 18:38:22 -0700 2008 version got out of sync somehow [darrinholst]
folder loader.rb Thu Aug 16 01:35:45 -0700 2007 Point to rake local:setup to get started [nicwilliams]
folder local/ Thu Sep 27 14:42:16 -0700 2007 Updated oracle connection.rb [nicwilliams]
folder scripts/ Thu Aug 16 01:36:05 -0700 2007 Started some console support [nicwilliams]
folder tasks/ Mon Jul 14 14:11:27 -0700 2008 created test for oracle_enhanced adapter [Raimonds Simanovskis]
folder test/ Tue Jul 15 18:17:42 -0700 2008 Merge branch 'oracle_enhanced' of git://github.... [darrinholst]
folder website/ Tue Jul 15 18:38:22 -0700 2008 version got out of sync somehow [darrinholst]
README.txt
= Composite Primary Keys for ActiveRecords

== Summary

ActiveRecords/Rails famously doesn't support composite primary keys. 
This RubyGem extends the activerecord gem to provide CPK support.

== Installation

    gem install composite_primary_keys
    
== Usage
  
    require 'composite_primary_keys'
    class ProductVariation
      set_primary_keys :product_id, :variation_seq
    end
    
    pv = ProductVariation.find(345, 12)
    
It even supports composite foreign keys for associations.

See http://compositekeys.rubyforge.org for more.

== Running Tests

See test/README.tests.txt

== Url

http://compositekeys.rubyforge.org

== Questions, Discussion and Contributions

http://groups.google.com/compositekeys

== Author

Written by Dr Nic Williams, drnicwilliams@gmail
Contributions by many!