DEV Community

Discussion on: How to turn on Rails 7 framework defaults (part 1)

Collapse
 
briankephart profile image
Brian Kephart

Any tips on how to get info on which fixture has the violation?

Collapse
 
sturpin profile image
Sergio Turpín

Did you find a solution? 🤦‍♂️

Collapse
 
briankephart profile image
Brian Kephart

I used VS Code to open the local copy of Active Record and edited out a statement that was suppressing the backtrace. Then I could see where the errors were coming from.

Thread Thread
 
sturpin profile image
Sergio Turpín

Fantastic!! Do you remember exactly what you changed?

Thread Thread
 
briankephart profile image
Brian Kephart

No, but I think it was a statement in the AR Postgres adapter that rescues a PG exception and returns false instead, which then causes AR to raise the fixture error.