title: Rails using joins retrieve repeated column
body: <p>My association</p>
  
  <pre><code>class Website &lt; ApplicationRecord
    has_many :settings
    has_one :shop
  end
  </code></pre>
  
  <p>Setting and Shop tables value are:</p>
  
  <pre><code>2.6.1 :003 &gt; Setting.all.pluck(:records)
  =&gt; [2, 2, 4, 0, 0, 0]
  
  2.6.1 :003 &gt; Shop.all.pluck(:records)
  =&gt; [4, 1, 1] 
  </code></pre>
  
  <p>Using joins</p>
  
  <pre><code>Website.joins(:settings, :shop).where("websites.id = ?", 2).pluck("settings.records", "shops.records")
  </code></pre>
  
  <p>I am getting repeated value</p>
  
  <pre><code>[[2, 4], [2, 1], [2, 1], [2, 4], [2, 1], [2, 1], [4, 4], [4, 1], [4, 1], [0, 4], [0, 1], [0, 1], [0, 4], [0, 1], [0, 1], [0, 4], [0, 1], [0, 1]]
  </code></pre>
  
  <p>The result i want like</p>
  
  <pre><code>[[2, 4], [2, 1], [4, 1], [0, 0], [0, 0], [0, 0]]
  </code></pre>
  
  <p>How can i resolve the problem?</p>
  
  <p>Thanks in advance :)</p>