title: Creating a follow/unfollow relationship from scratch between two models in Rails
body: <p>Right now I'm trying to create a <strong>one-sided</strong> follow/unfollow relationship where a user can follow/unfollow a celebrity. Despite the gems available I'd like to learn how to create this from scratch. </p>
  
  <p>The posts I've found online seem to only incorporate a self-referential style where a model instance can only follow one of its kind (a user can only follow other users). As a starting point point I've used this <a href="https://stackoverflow.com/questions/3397920/relationship-like-twitter-followers-followed-in-activerecord">post</a> for the initial setup. I'm just not sure how to re-configure the associations for models:</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
  end
  
  class Following &lt; ActiveRecord::Base
  end
  
  class Celebrity &lt; ActiveRecord::Base
  end
  </code></pre>