Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated diagram isn't loading all models #362

Open
kenton opened this issue Nov 9, 2020 · 3 comments
Open

Generated diagram isn't loading all models #362

kenton opened this issue Nov 9, 2020 · 3 comments

Comments

@kenton
Copy link

kenton commented Nov 9, 2020

Trying to generate an ERD for a project I'm working on and keep getting errors like these:

Warning: Ignoring invalid association :survey_questions on Program (model SurveyQuestion exists, but is not included in domain)
Warning: Ignoring invalid association :saved_matches on Program (model SavedMatch exists, but is not included in domain)

There are a ton of these and the resulting diagram is missing all of those tables (which makes sense, given the warnings).

Just not sure the cause or fix for this. (FYI upgrading to Rails 6.0+ is not an option at this point)

Thoughts?


Rails-erd: 1.5.2 & 1.6.0
Rails 5.2.4.4

@Buk1m
Copy link

Buk1m commented Nov 12, 2020

Models should be migrated before generating erd.

@damienlethiec
Copy link

Same here, migrations are done

@duaneking
Copy link

All migrations are done but this error still persists. How do I force all models to be included? I don't care about domains, this is legacy code and I just want to understand it so I can make updates or replace it with new code in a different project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants