A tool for analyzing ActiveRecord model associations in rails projects

Hello. First time poster here :slight_smile:

Long story short: I’ve got tired of trying to figure out model relations
in big rails projects with more than 20 models.

Before I’ve tried to use rails-erd, which turned out to be a PITA to
conceive.

So I figured out a different approach where model relations are
organized in a tree-like pattern like this (example from one of the
projects):

Metric
MetricConfiguration
ActionInstance
Action::EmailInstance
Schedule
Threshold
MetricInstance

You can check out the tool here
https://gist.github.com/4r2r/10317c83f964ee072066

Any feedback would be greatly appreciated!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs