I have a problem with a table that has a field named ‘type’
When I try to use active record in a console, I get this error…
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism
failed to locate the subclass: ‘10’. This error is raised because the
column ‘type’ is reserved for storing the class in case of inheritance.
Please rename this column if you didn’t intend it to be used for storing
the inheritance class or overwrite Debtortrans.inheritance_column to use
another column for that information.
Since I can’t rename the column because the software creating it needs
this, is it possible to alias the name somehow within rails, perhaps in
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.