On Jul 14, 4:58 pm, Jeremy Evans <[EMAIL PROTECTED]> wrote: > On Jul 14, 11:41 am, Glen <[EMAIL PROTECTED]> wrote: > > > Jeremy, > > > Is it possible to represent a primary foreign key in Sequel? Can I > > achieve the same behavior with a certain set of flags to primary_key > > or foreign_key? > > To be honest, I wasn't even familiar with the PFK concept until just > now. You should use foreign_key for all of the PFKs, and I don't > believe Sequel supports creating a table with a composite primary key > (even though it supports composite primary keys with models). If > you'd like to add support for composite primary keys to the schema > generator, I welcome patches/pull requests. > > Jeremy
Jeremy, I'd love to add support. I will need to look over the code base and get more comfortable with it first, and I'm a bit busy at work right now but am definitely very interesting in helping however I can. You guys have a really nice ORM here, much nicer/easier to work with than ActiveRecord in my opinion. -Glen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
