title: What is the difference between t.belongs_to and t.references in rails?
body: <p>What is the difference between <code>t.references</code> and <code>t.belongs_to</code>?
  Why are we having those two different words? It seems to me they do the same thing?
  Tried some Google search, but find no explanation.</p>
  
  <pre><code>class CreateFoos &lt; ActiveRecord::Migration
    def change
      create_table :foos do |t|
        t.references :bar
        t.belongs_to :baz
        # The two above seems to give similar results
        t.belongs_to :fooable, :polymorphic =&gt; true
        # I have not tried polymorphic with t.references
        t.timestamps
      end
    end
  end
  </code></pre>