A library allows you to split the class using the Single Table Inheritance (STI) in Rails depending on the value of the enum.TI