Activity
Posted in how to model on rails that a supplier can be a customer and a customer can also be a supplier. ?
Hi, I think I had a simalr issue while dealing with and employee (User) and manger (also User) relationship, my solution was to use a self-jion or self referential association
migration
add_reference :users, :manager, foreign_key: { to_table: :users }, index: true
model
belongs_to :manager, class_name: "User"