This project is archived and is in readonly mode.
Foxy fixtures can't handle custom primary keys
-
Pratik
- State changed from new to incomplete
Is this still an issue ? Could you please submit a failing test ?
Thanks.
-
Matt Kern
Loading fixtures in the test environment works fine for me, but strangely when I try to run "RAILS_ENV=development rake db:load:fixtures" it fails.
I'll see if I cant come up with a test case to show the behavior.
-
Matt Kern
Er, that was db:fixtures:load above...
-
CancelProfileIsBroken
- Tag set to bugmash
-
Gaius Centus Novus
I believe the problem is that
find(x)callsfind(:first, :conditions => { :id => x}), when istead it should callfind(:first, :conditions => { self.primary_key => x }) -
Gaius Centus Novus
I was wrong about the problem, but there's definitely something odd going on. I get odd foreign keys loaded from String-keyed fixtures. Needs further investigation.
-
Santiago Pastorino
- State changed from incomplete to open
- Importance changed from to
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale