Added relationships table with 'rails generate model Relationship follower_id:integer followed_id:integer' and removed generated factory with 'rm -f spec/factories/relationship.rb'
Indexes to relationship attributes in migration file.
Basic validity test of relationship model.
has_many :relationships, foreign_key: follower_id, dependent: :destroy
Belongs to attributes in relationship model.
Validations to ensure follower and followed ids are present.
has_many :followed_users, through: :relationships, source: :followed
follow! and following? methods to user model.
Test for following.
unfollow! method.
Reverse relationships allowing us to call both user.followers as well as user.followed_users.
Relationships to rake task and refactoring.
Following and Follers get routes.
Following and followers stats displaying on home page.
Follow and unfollow buttons on user profiles. And following stats.
Working following and followers links.
Core follow/unfollow functionality complete.
AJAX implementation of follow/unfollow botton.
Tests for feed.
Home feed fully implemented.