I maintain a rails app which uses a lot of data from a commercial
system (a student records system) and adds much functionality.

I'm having to make some changes to make the system work with upcoming
changes to their database and have run into a situation where using
single table inheritance would be the perfect solution.

The only problem is that the column I need to use stores the object
type as a single letter instead of a whole class name. Is there a way
I can use STI with a mapping for type column? So that the string
stored in the type column is not the class name, but maps 1-to-1 to
one?

Thanks in advance

Kevin Hughes

--~--~---------~--~----~------------~-------~--~----~
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