Composite Key Support


#1

Right now rails doesn’t support composite keys, that is id1, id2, and
id3 are in the primary key of the table. Does anyone know if this is
being discussed for future versions, or is it pretty much out of scope?


#2

hah, I’m very tantalized! I’m off to check it out now, thanks for the
tip!


#3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 28, 2006, at 12:24 PM, Joe C. wrote:

Right now rails doesn’t support composite keys, that is id1, id2, and
id3 are in the primary key of the table. Does anyone know if this is
being discussed for future versions, or is it pretty much out of
scope?

Composite keys would surely inch further in-scope if some
enterprising soul had a thoroughly tested implementation to flog us
with.

The polymorphic joins DHH did for Rails 1.1 are a nice example of
working with composite foreign keys.

Please do investigate if sufficiently tantalized :wink:

Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFEBLZIAQHALep9HFYRAjDhAJ9kkI4ox4chhuvAOKxVEz4nWmjLYACfQvVP
wy8FRX+s2jIPgqaC+uFKe8w=
=aLH2
-----END PGP SIGNATURE-----


#4

It is pretty much out of scope. The consensus is that there is no
obvious benefit of this particular feature. I tend to think
otherwise, but oh well…

cheers,
daesan