Open Crunch09 opened 10 years ago
Before:
association :articles, :count
After:
aggregate :articles, method: :count aggregate :articles, method: :average, on: :price # or even shorter count :articles average :articles, on: :price
This is already in the works. :construction_worker:
will get back to this once rails 5 lands, maybe left_outer_joins is available then
left_outer_joins
Before:
After:
This is already in the works. :construction_worker: