sharedearth-net/sharedearth-net — pull request #35 by amitamb (2011-12-01 14:16:02+00:00)
Title: Expand network mutual

Added new type of entity MUTUAL_PERSON_ENTITY which represents friends of friends but not friends. Added after_create and after_destroy callbacks to update mutual network after addition/removal of trusted person.

I have added entity type names to seed.rb so that just executing seeds.rb will be enough no need to rollback and migrate. It was part of migration scripts. I have updated it there as well. Feedback?

I have used some what non-trivial SQL query for updating mutual network. Please review it as well.