[v0.40.4](https://github.com/ash-project/ash_postgres/compare/v0.40.3...v0.40.4) (2021-07-05)
Bug Fixes:
* left_lateral_join for many_to_many aggregates
* properly reference nested aggregate fields for join
* properly determine fallback table for polymorphic resources
* ensure non-tenant resources can be aggregates
* properly set aggregate query sources
* retain parent as bindings
* don't add `rel_source` at all
* properly build atoms list
* horribly hack ecto for dynamic bindings
* properly coalesce aggregate values
* always add nullability flag
* sort references only after other same-table ops
* generate multitenant foreign keys properly
Improvements:
* update to latest ash
* update to latest ash
* leverage new `private_vars` for errs