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
the model?

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to