I was thinking about:

```
post = Post.first
sql = post.comments.to_sql
assert_match(/.?post_id.? = #{post.id}\Z/i, sql)
```

but please keep the current change as well.