1 # == Schema Information
 
   5 #  id             :bigint           not null, primary key
 
   6 #  user_id        :bigint           not null
 
   7 #  friend_user_id :bigint           not null
 
  12 #  index_friends_on_user_id_and_created_at  (user_id,created_at)
 
  13 #  user_id_idx                              (friend_user_id)
 
  17 #  friends_friend_user_id_fkey  (friend_user_id => users.id)
 
  18 #  friends_user_id_fkey         (user_id => users.id)
 
  21 class Follow < ApplicationRecord
 
  22   self.table_name = "friends"
 
  24   belongs_to :follower, :class_name => "User", :foreign_key => :user_id, :inverse_of => :follows
 
  25   belongs_to :following, :class_name => "User", :foreign_key => :friend_user_id, :inverse_of => :follows