http://dev.rubyonrails.org/ticket/9971
This one cost me a few hours trying to debug my test cases when I really needed to be debugging ActiveRecord. If you define a table with a key other than id, the db/schema.db will NOT define any primary key for the table. ActiveRecord::SchemaDumper has a mechanism to handle this but the mysql adapter wasn't playing the game. Please have a look at this patch and verify it. It passes both the existing mysql regression tests (i.e rake test_mysql), and the test I added to test this specific use case. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
