Describes the specialization of an entity. Specialized entites correspond to inheritance. In Rails, specialization is referred to as single table inheritance.
Attributes
| domain | [R] | The domain in which this specialization is defined. |
| generalized | [R] | The source entity. |
| specialized | [R] | The destination entity. |
Public instance methods
inheritance?
()
[show source]
# File lib/rails_erd/domain/specialization.rb, line 45 def inheritance? !polymorphic? end
polymorphic?
()
[show source]
# File lib/rails_erd/domain/specialization.rb, line 49 def polymorphic? generalized.generalized? end