We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 374e47b + d2386f7 commit d78a563Copy full SHA for d78a563
1 file changed
docsite/source/joins.html.md
@@ -40,11 +40,11 @@ class Users < ROM::Relation[:sql]
40
end
41
42
def with_tasks
43
- join(:tasks, user_id: :id, priority: 1)
+ join(:tasks, id: :user_id, priority: 1)
44
45
46
def with_posts
47
- left_join(:posts, user_id: :id)
+ left_join(:posts, id: :user_id)
48
49
50
```
@@ -63,11 +63,11 @@ class Users < ROM::Relation[:sql]
63
64
65
66
- join(:tasks, { user_id: :id }, table_alias: :user_tasks)
+ join(:tasks, { id: :user_id }, table_alias: :user_tasks)
67
68
69
70
- left_join(posts, { user_id: :id }, table_alias: :user_posts)
+ left_join(posts, { id: :user_id }, table_alias: :user_posts)
71
72
73
0 commit comments