Skip to content

Commit 71634e8

Browse files
committed
Ensure ManyToMany produces a unique schema for the left-side relation
1 parent b400172 commit 71634e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rom/sql/associations/many_to_many.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def call(target: self.target)
2020
if target != self.target
2121
target.schema.merge(join_schema)
2222
else
23-
left.schema.project(*columns)
23+
left.schema.uniq.project(*columns)
2424
end
2525
else
2626
target_schema

0 commit comments

Comments
 (0)