Displaying 1 result from an estimated 1 matches for "superior_id".
2008 Apr 18
2
has_one self reference
...or = bossman
person1.superior.name # => "Mr. Bossman"
I wonder what kind of columns I need for this in my Persons table
manually specified and which columns are virtual. I experimented a bit
already and got something quite similar, but for some reason I was able
to modify the person1.superior_id independantly of the person1.superior
object. I''d rather have nothing to do with the _id and shield it from
being used directly.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Goo...