Displaying 1 result from an estimated 1 matches for "with_id".
Did you mean:
with_gd
2006 Mar 08
0
combining STI + polymorphism + rich self HABTM : how to ?
...represent a common concept: Entity
class Entity < ActiveRecord::Base
class Person < Entity
class Company < Entity
table "relations"
------------------
# of_id :integer(11) = the left party: john, MSFT
# of_type :string(20)
# with_id :integer(11) = the right party..
# with_type :string(20)
# relation_type_id :integer(11) = L.U.T: "works_for", "knows"
relationship models
----------------
class Relation < AR::B
class RelationType < AR::B
What I don''...