title: Multiple Associations With the Same Table rails
body: <p>i have two class User and Bug there are two foreign keys in bug which are referencing to user_id ..the problem is that how i store user_id in foreign key column while creating the record.like for example if user enter bug then his id store in buger_id colunm.</p>
  
  <p>class Bug</p>
  
  <pre><code>belongs_to :buger, class_name: "User", foreign_key: "buger_id"
  belongs_to :developer , class_name: "User", foreign_key: "developer_id"
  </code></pre>
  
  <p>class user</p>
  
  <pre><code>has_many :created_bugs, class_name:"bugs"
  has_many :developed_bugs, class_name:"bugs"
  </code></pre>