What is a standard prerequisite for implementing Single Table Inheritance (STI)?
1.The models used for STI must mix in the module ActiveRecord::STI
2.All models used for STI must include “self.abstract_class=trueâ€.
3.All database tables used for STI must be related to each other using a foreign key.
4.The database table used for STI must have a column named “typeâ€.
Answer:3
Posted Date:-2022-09-17 04:40:19