title: Use of foreign_key in rails
body: <p>When,why and how do we use foreign_key in rails?
  And what is the difference between primary key and foreign key?
  I'm kinda new in rails so a detailed explanation would be appreciated.
  Thank you.</p>