evilmartians / evil-seed

A Gem for creating partial anonymized dumps of your database using your app model relations.
MIT License
447 stars 19 forks source link

Support for Foreign Key attribute on belongs_to #22

Open ab320012 opened 3 months ago

ab320012 commented 3 months ago

My issue is i have a belongs_to relationship with a foreign_key defined but it's looking for the rails foreign key instead of my belongs_to foreign_key attribute i am wondering if this has happened or if the library is still supported

Envek commented 2 months ago

Hey, thanks for reaching out. Can you please provide more details (Rails model, schema.rb, evil-seed output)? I'm not sure that I fully understand the issue.

It would be much appreciated if you provide a self-contained gist like one Rails uses for bug reporting