public
Description: Composite Primary Keys support for Active Record
Homepage: http://compositekeys.rubyforge.org
Clone URL: git://github.com/drnic/composite_primary_keys.git
commit  0efff84e20d818323162859687e4011c2e941856
tree    d1afd6ddef0fbb8772aa4509f27d22b44821cc14
parent  102c47fe2b5b382ca819040017c9c6305b67d970
name age message
file .gitignore Sat Jun 07 10:27:35 -0700 2008 fix has many through when through association h... [Darrin Holst]
file History.txt Wed Jan 21 21:01:15 -0800 2009 allow conditions to be passed to ActiveRecord#e... [Darrin Holst]
file Manifest.txt Wed Jan 21 21:01:15 -0800 2009 allow conditions to be passed to ActiveRecord#e... [Darrin Holst]
file README.txt Wed Aug 15 01:23:46 -0700 2007 Refactoring Rakefile into local + tasks folders... [nicwilliams]
file README_DB2.txt Wed Aug 15 01:23:46 -0700 2007 Refactoring Rakefile into local + tasks folders... [nicwilliams]
file Rakefile Wed Oct 29 19:40:55 -0700 2008 new version [darrinholst]
file init.rb Thu Aug 16 01:52:14 -0700 2007 init.rb file so gem can be installed as a plugi... [nicwilliams]
file install.rb Thu Jul 20 00:59:30 -0700 2006 Initial git-svn-id: svn+ssh://rubyforge.org/v... [nicwilliams]
directory lib/ Loading commit data...
file loader.rb Thu Aug 16 01:35:45 -0700 2007 Point to rake local:setup to get started git-s... [nicwilliams]
directory local/ Thu Sep 27 14:42:16 -0700 2007 Updated oracle connection.rb git-svn-id: svn+s... [nicwilliams]
directory scripts/ Sat Sep 13 07:56:19 -0700 2008 Refactored console.rb to run irb directly [darxriggs]
directory tasks/ Mon Jul 14 14:11:27 -0700 2008 created test for oracle_enhanced adapter [Raimonds Simanovskis]
directory test/ Fri Jan 23 23:52:08 -0800 2009 fix bug with exists? always returning true when... [darrinholst]
directory website/ Fri Jan 23 23:52:08 -0800 2009 fix bug with exists? always returning true when... [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!