lib/rom/sql/associations/many_to_many.rb in rom-sql-3.2.0 vs lib/rom/sql/associations/many_to_many.rb in rom-sql-3.3.0
- old
+ new
@@ -18,10 +18,10 @@
schema =
if left.schema.key?(foreign_key)
if target != self.target
target.schema.merge(join_schema)
else
- left.schema.project(*columns)
+ left.schema.uniq.project(*columns)
end
else
target_schema
end.qualified