I’m having a class called Person, with subclasses as goalkeeper,
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
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 ?
rm -rf / 2>/dev/null - http://null.in
“Things do not happen. Things are made to happen.” - JFK