mirror of https://github.com/rails/rails
Update association_basics.md
This commit is contained in:
parent
a6a840f150
commit
5737cf9ce0
|
@ -2975,7 +2975,7 @@ Delegated types solves this problem, via `delegated_type`.
|
|||
|
||||
In order to use delegated types, we have to model our data in a particular way. The requirements are as follows:
|
||||
|
||||
* There is a superclass that stores shared attributes among all subclasses in it's table.
|
||||
* There is a superclass that stores shared attributes among all subclasses in its table.
|
||||
* Each subclass must inherit from the super class, and will have a separate table for any additional attributes specific to it.
|
||||
|
||||
This eliminates the need to define attributes in a single table that are unintentionally shared among all subclasses.
|
||||
|
|
Loading…
Reference in New Issue