rails-erd
rails-erd copied to clipboard
Hide ApplicationRecord
Maybe as an option, recent rails application added a base class between AR::Base and application models.
currently, I see it on my ERD, but I'm not too sure I want it. It can be confusing for Data Scientist not familiar with Rails and OOP.
@mathieujobin which rev of Rails is doing this? 5.2.2? 6.0.0?
Rails 6+, although I think ApplicationRecord was introduced in 5.
@kerrizor
To add onto this, with Rails 6.0.3.3, when using the bundle exec rake erd
or bundle exec erc
, everything generates as expected
But using the auto generation after migration task, the ActiveRecord::SchemaMigration
and ActiveRecord::InternalMetadata
rails models are included in the erd
I still would like to have a solution for this.
thank you
Found it
turn it off with
polymorphism: false