title: How to add references to a model to use it twice with different name?
body: <p>I have two models Game and Team. I want every game to have exactly two teams a <strong>hometeam</strong> and an <strong>awayteam</strong>. I also want to have access to <strong>@game.hometeam</strong> and <strong>@game.awayteam</strong>. </p>
  
  <p><strong>games</strong></p>
  
  <pre><code> create_table "games", force: :cascade do |t|
      t.datetime "created_at", null: false
      t.datetime "updated_at", null: false
      t.datetime "start_time"
      t.datetime "end_time"
      t.string "name"
      t.integer "admin_id"
      t.integer "stadium_id"
      t.integer "hometeam_id"
      t.integer "awayteam_id"
    end
  </code></pre>
  
  <p><strong>teams</strong></p>
  
  <pre><code>create_table "teams", force: :cascade do |t|
     t.string "name"
     t.integer "capacity"
     t.datetime "created_at", null: false
     t.datetime "updated_at", null: false
  end
  </code></pre>
  
  <p><strong>and my controllers for Game , Team is empty</strong></p>
  
  <pre><code>has_one :hometeam , :class_name =&gt; 'Team' 
  has_one :awayteam , :class_name =&gt; 'Team' 
  </code></pre>