This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Jun 07 10:27:35 -0700 2008 | [Darrin Holst] |
| |
History.txt | Tue Jul 15 18:31:48 -0700 2008 | [darrinholst] |
| |
Manifest.txt | Thu Jun 05 18:03:46 -0700 2008 | [Darrin Holst] |
| |
README.txt | Wed Aug 15 01:23:46 -0700 2007 | [nicwilliams] |
| |
README_DB2.txt | Wed Aug 15 01:23:46 -0700 2007 | [nicwilliams] |
| |
Rakefile | Thu Jun 05 18:03:46 -0700 2008 | [Darrin Holst] |
| |
init.rb | Thu Aug 16 01:52:14 -0700 2007 | [nicwilliams] |
| |
install.rb | Thu Jul 20 00:59:30 -0700 2006 | [nicwilliams] |
| |
lib/ | Tue Jul 15 18:38:22 -0700 2008 | [darrinholst] |
| |
loader.rb | Thu Aug 16 01:35:45 -0700 2007 | [nicwilliams] |
| |
local/ | Thu Sep 27 14:42:16 -0700 2007 | [nicwilliams] |
| |
scripts/ | Thu Aug 16 01:36:05 -0700 2007 | [nicwilliams] |
| |
tasks/ | Mon Jul 14 14:11:27 -0700 2008 | [Raimonds Simanovskis] |
| |
test/ | Tue Jul 15 18:17:42 -0700 2008 | [darrinholst] |
| |
website/ | Tue Jul 15 18:38:22 -0700 2008 | [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!




