0 votes
in Ruby by
What is a standard prerequisite for implementing Single Table Inheritance (STI)?

 a. The models used for STI must mix in the module ActiveRecord::STI

 b. All models used for STI must include "self.abstract_class=true".

 c. All database tables used for STI must be related to each other using a foreign key.

 d. The database table used for STI must have a column named "type".

1 Answer

0 votes
by
What is a standard prerequisite for implementing Single Table Inheritance (STI)?

 

 Correct answer is :-  All database tables used for STI must be related to each other using a foreign key.

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
...