GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of drnic/composite_primary_keys
Description: Composite Primary Keys support for Active Record
Homepage: http://compositekeys.rubyforge.org
Clone URL: git://github.com/darxriggs/composite_primary_keys.git
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 Mon Sep 08 12:30:55 -0700 2008 fixed for delete_records when has_many associat... [darxriggs]
file Manifest.txt Thu Jun 05 18:03:46 -0700 2008 merge from darrinholst/composite_primary_keys f... [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 Thu Jun 05 18:03:46 -0700 2008 merge from darrinholst/composite_primary_keys f... [Darrin Holst]
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 [nicwilliams]
directory lib/ Fri Sep 12 17:04:02 -0700 2008 Refactored libraries [darxriggs]
file loader.rb Thu Aug 16 01:35:45 -0700 2007 Point to rake local:setup to get started [nicwilliams]
directory local/ Thu Sep 27 14:42:16 -0700 2007 Updated oracle connection.rb [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 Sep 12 17:05:53 -0700 2008 Fixed delete_records test to work for more data... [darxriggs]
directory website/ Wed Sep 03 18:03:54 -0700 2008 use models instead of ids in association create... [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!