http://compositekeys.rubyforge.org/
Beyond that, there might be plugins that talk about using a UUID orGUID for the primary key, but I didn't find those yet. Any other links?
http://uuidtools.rubyforge.org/