We have a complex legacy schema with a lot of tables and models, and I can’t keep all of the paths between tables in my head, so just wrote something that could help find the path between any two models just by entering their model names like:
bundle exec modelist paths my_model_1 my_model_2
which results in (greatly simplified because a full actual response is much, much longer):
checking for path from foobar to barfoo…