mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 05:29:31 -04:00
Added plantings_count (i.e. counter_cache) to Member
Also removed the superfluous .plantings_count method on Crop, which was causing some confusion. A thing we learned today: we should use .size to find the size of ActiveRecord collections, not .count, because .count doesn't use the cache (while .size does).
This commit is contained in:
@@ -11,3 +11,6 @@ rake growstuff:oneoff:set_default_crop_creator
|
||||
|
||||
echo "2013-08-26 - set planting owner"
|
||||
rake growstuff:oneoff:set_planting_owner
|
||||
|
||||
echo "2013-08-26 - initialize member planting count"
|
||||
rake growstuff:oneoff:initialize_member_planting_count
|
||||
|
||||
Reference in New Issue
Block a user