What are the possible solutions to OO/Table inheritance (ie. STI,MTI,CLI) in Rails 5+?
问题 These are the options I see that can help solve "Rails 5 - Object Relation Impedence and how to structure multiple inherited classes/tables" TL;DR - the Object Table Impedance ORM problem. Abstract base class, with each child class having its own table (ie storing the common attributes for each type in its own table) STI, just put everything in one Base class and Table, and create all child attributes in that table, but have the sub-classes (ie your other Rails models) inherit from that Base