Single Table Inheritance - Ruby on Rails Tutorial

preview_player
Показать описание
Single Table Inheritance is a terrific way of sharing functionality and database fields between Models. It encapsulates the Inheritance principle of Object Oriented Programming.

If you have a model that could be one type of another model, use STI.
Рекомендации по теме