mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
6a617cc61e
If source/through scope references other tables in where/order, we should explicitly maintain joins in the scope, otherwise association queries will fail with referenced unknown column. Fixes #33525.
17 lines
218 B
YAML
17 lines
218 B
YAML
michael_welcome:
|
|
id: 1
|
|
post_id: 1
|
|
person_id: 1
|
|
first_post_id: 2
|
|
|
|
michael_authorless:
|
|
id: 2
|
|
post_id: 3
|
|
person_id: 1
|
|
first_post_id: 3
|
|
|
|
bob_welcome:
|
|
id: 3
|
|
post_id: 8
|
|
person_id: 4
|
|
first_post_id: 10
|