Closed irees closed 8 years ago
irb(main):030:0> Feed.where('').group(:onestop_id).count.select { |k,v| v > 1 }
=> {"f-u20-trenitalia~obb"=>2, "f-u0p-trenitalia~obb"=>2}
Removed the duplicate instances of each feed above (the one with no feed_versions associated)
Some models are missing uniqueness constraint on
onestop_id
. Add to concern & index.