Forum: Ruby on Rails Composite Key Support

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe C. (Guest)
on 2006-02-28 22:24
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?
Jeremy K. (Guest)
on 2006-02-28 22:45
(Received via mailing list)
-----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 ;)

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

iD8DBQFEBLZIAQHALep9HFYRAjDhAJ9kkI4ox4chhuvAOKxVEz4nWmjLYACfQvVP
wy8FRX+s2jIPgqaC+uFKe8w=
=aLH2
-----END PGP SIGNATURE-----
Joe C. (Guest)
on 2006-02-28 22:49
hah, I'm very tantalized!  I'm off to check it out now, thanks for the
tip!
Dae San H. (Guest)
on 2006-03-01 14:52
(Received via mailing list)
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
This topic is locked and can not be replied to.