On Monday, November 25, 2013 10:41:28 AM UTC-8, Giovanni Gervasio wrote: > Thank you for your quick reply. > > I tried what you suggest, but it's still not working: I now get a > different error, though : > > irb(main):006:0> Address.first.cases > Sequel::DatabaseError: ODBC::Error: S0022 (207) [Microsoft][ODBC SQL > Server Driver][SQL Server]Invalid column name 'address_id'. > > > It seems Sequel is using the conventional name for the primary key, though > I tried to override it. What am I doing wrong ? >
You probably need to specify the :key=>:IndexduMandant option to "one_to_many :cases". Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/groups/opt_out.
