title: add_foreign_key vs add_reference in rails
body: <p>What is the difference between <strong>"add_foreign_key"</strong> and <strong>"add_reference"</strong> methods in rails?</p>
  
  <p>According to rails official guide all I understand is that they both are used to create foreign key constraint between two tables. </p>