Skip to content

Document using separate tables instead of polymorphic associations and STI

Yorick Peterse requested to merge document-polymorphing-columns into master

This adds documentation stating that one should use separate tables instead of polymorphic associations and STI, as this has many benefits.

In the previous version of this MR I mentioned using separate columns in the same table and CHECK constraints. This has been dropped in favour of separate tables as this is much easier to deal with, and has more benefits.

Edited by Yorick Peterse

Merge request reports