Skip to content

Commit 4740e2e

Browse files
authored
Merge pull request #382 from rom-rb/fix-specs
Ensure ManyToMany produces a unique schema for the left-side relation
2 parents b400172 + 71634e8 commit 4740e2e

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)