[ANN] Composite Primary Keys for ActiveRecord 0.3.2

D

Dr Nic

[Cross-posting from Ruby on Rails forum]

ActiveRecords with composite primary keys now seem to happily support
find/create/update/destroy options.

Url: http://compositekeys.rubyforge.org

Background:
Rails/ActiveRecords has long been critised for not supporting legacy
databases, especially composite primary keys. This gem extends ARs with
this support.

Cheers
Nic
 
S

Sven Suska

Thanks, Nic, for crossposting!

I'm so happy to know, that composite primary keys
can at last be used with ActiveRecord.

Thanks you for sharing your code with us (me, especially :) )

Sven


Dr said:
[Cross-posting from Ruby on Rails forum]

ActiveRecords with composite primary keys now seem to happily support
find/create/update/destroy options.
 
D

Dr Nic

Sven said:
Thanks, Nic, for crossposting!

I'm so happy to know, that composite primary keys
can at last be used with ActiveRecord.

Thanks you for sharing your code with us (me, especially :) )

No problems :)

Let me know of any special use cases that don't work (else I'll just
keep writing code that just I need)

At the moment I'm working on foreign keys in associations, e.g.

class Foo < AR::Base
has_many :bars, :foreign_key => [:bar_id, :seq]
end

Cheers
Nic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top