Displaying 1 result from an estimated 1 matches for "is_defender".
2006 Jul 06
5
Single table inheritance
...n, with subclasses as goalkeeper,
forward, defender.
Now a person can be a forward as well as a defender or a goalkeeper.
I want to use single table inheritance like :
class Goalkeepr < Person
end
And not have multiple boolean columns like in my people table like is
is_goalkpeer, is_forward, is_defender.
How do I go about it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
"Things do not happen. Things are made to happen." - JFK