Init relationships table

The new table will hold followed/following relationship
among users.

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Regenerate relationship model to remove extra 's' suffix

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add user-relationship relation

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add presence validation for relationship ids

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add followed_users method in the user model

Use the relationships table to get all followed_users of
a give user

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Implement follow/unfollow commands in user model

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add followers relationship to user model

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add relationships data populator

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add stats view in home page

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add following/followers, relationship routes

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add follow/unfollow buttons in profile page

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Implement following/follower pages in user profile

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Remove extra '!' suffix in user.unfollow

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Implement follow/unfollow in user profiles

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Gemfile update

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Cleanup stat class refernces

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Fix unfollow integration test

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Add relationships_controller to handle ajax follow/unfollow

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Ajax-enabled follow/unfollow buttons.

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>
Include followed user posts in user feed

Signed-off-by: Marvin Khristian Zamora <marvinlz@ph.ncs-i.com>