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 (
Darrin Holst (author)
Thu May 28 06:53:45 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History.txt | ||
| |
Manifest.txt | ||
| |
README.txt | ||
| |
README_DB2.txt | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | Thu Jul 20 00:59:30 -0700 2006 | |
| |
lib/ | ||
| |
loader.rb | Thu Aug 16 01:35:45 -0700 2007 | |
| |
local/ | Thu Sep 27 14:42:16 -0700 2007 | |
| |
scripts/ | ||
| |
tasks/ | ||
| |
test/ | Thu May 28 06:53:45 -0700 2009 | |
| |
website/ | Fri Jan 23 23:52:08 -0800 2009 |
= 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!












