Displaying 1 result from an estimated 1 matches for "initial_id".
Did you mean:
initial_gs
2006 Apr 07
4
STI and foreign_key problem
...ildren, :foreign_key => "case_id"
end
class Child < ActiveRecord::Base
belongs_to :initial
belongs_to :registered
end
When I attempt to access the children attribute via an Initial object I
get an unknown column exception and the dump shows the sql is trying to
select "initial_id" from the children table. This despite the fact I
specified the foreign key of ''case_id'' in the Initial model.
This has been driving me crazy this evening. All searches for help have
come up empty. Anyone help would be greatly appreciated.
Thanks!
Peer
--
Posted via...