I want to use a column called type
without invoking Single Table Inheritance (STI) - I just want type
to be a normal column that holds a String
.
How can I do this without having Rails expecting me to have single table inheritance and throwing an exception of The single-table inheritance mechanism failed to locate the subclass...This error is raised because the column 'type' is reserved for storing the class in case of inheritance.
?
Any ideas on how to do this?
rails 3.2
. According to apidock: 'This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.' Thanks for the tip though! – Singularity