voormedia / rails-erd

Generate Entity-Relationship Diagrams for Rails applications
http://voormedia.github.io/rails-erd/
MIT License
4k stars 367 forks source link

Add support for Document Oriented DBMS #251

Open msanfilippof opened 7 years ago

msanfilippof commented 7 years ago

I'm working on some applications with SQL/NoSQL and different DBMSs. I get only the Active Record associations, no graph about NoSQL / Document relationships.

Thanks.

kerrizor commented 7 years ago

I haven't worked on a production system with a documentDB, so I'm not qualified to comment overly much here. Are you working with models that can be queried about their relationships? If so, then yes, we can and should add support for something like this! Would gladly welcome a PR, or guidance and a test app with 3-4 models so we have something to guide development.

msanfilippof commented 7 years ago

Hi, thank for reply. I'm working on a production system with PostGIS + MongoDB, I use a bridge as adapter for relationships between the two different DBMS, gem 'active_mongoid' is helpful.

For example, an (ActiveRecord) User has_many (MongoDB) Documents. I can query document of one user by calling Document.where(user_id: X)

Is very useful to get also this kind of relationship in this gem's output. Feel free to ask.