rails-erd icon indicating copy to clipboard operation
rails-erd copied to clipboard

Unable to generate correct diagram with 'socialization' gem

Open mzrnsh opened this issue 8 years ago • 2 comments

In my project I am using socialization gem. It kind of messes with the DB directly so probably it's not so unexpected that diagram was not generated properly and had errors specifically with the tables created by this gem.

Still, I thought I'd share this problem in order to let someone more competent see whether or not some more generic issue is hiding behind this.

This is the type of error I receive when trying to run 'rake erd':

  • Warning: Ignoring invalid association :follower on Socialization::ActiveRecordStores::Follow (polymorphic interface Follower does not exist)
  • Warning: Ignoring invalid association :followable on Socialization::ActiveRecordStores::Follow (polymorphic interface Followable does not exist)

mzrnsh avatar Jun 10 '16 22:06 mzrnsh

Thanks for reporting this! It'll probably not be something we get to any time soon (unless someone really gets a 🐝 in their 👒 ) but there's been a few other issues with AR relationships and how we approach them, so it is good to have this reported. I'll try to schedule some time to look into it as part of a 2.0.

kerrizor avatar Jun 10 '16 22:06 kerrizor