On Mar 25, 2011, at 5:33 PM, spokra wrote:

> ActiveRecord::SubclassNotFound (The single-table inheritance mechanism
> failed to locate the subclass: 'friend'. 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
> Sipfriend.inheritance_column to use another column for that
> information.):
> 
> 
> So how does one overwrite this variable?

You can do this in the model:

class Sipfriend < ActiveRecord::Base
  inheritance_column :some_other_column
end

If you're not actually doing STI, you can just pass nil as well to turn it off.

--Matt Jones


-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to