rails generate model Relationship follower_id:integer followed_id:integer
add indices for follower_id and followed_id and unique composite index
set up relationship structure and validation
set up following as the list of users the user is following (not followeds)
add follow/unfollow to user.rb and test their functioning
add passive_relationships (followers) and test
seed db for followers and following
set up followers/following display
show a user's following and followers
rails generate integration_test following
set up test for following/followers
rails generate controller Relationships
must be logged in to create or destroy a relationship
enable follow/unfollow
have follow/unfollow use Ajax. create tests.
first attempt at feed
split some tests
update feed to have more efficient SQL transactions (using subselect)