Subclassing STI models in Rails
21-Nov-2024 93
Here’s a short tip on opting out a specific model from Single Table Inheritance (STI).
Imagine a Vehicle model which is implemented using STI and extented with a type parameter to Sedan and Wagon models:.
Subclassing STI models in Rails #ruby #rubydeveloper #rubyonrails #Subclassing #models #Rails https://www.rubyonrails.ba/link/subclassing-sti-models-in-rails