My bad, the post_count property was moved to another table for optimization reasons.
Here’s the updated query
User.joins(:user_stat).where("user_stats.post_count = 0").destroy_all
My bad, the post_count property was moved to another table for optimization reasons.
Here’s the updated query
User.joins(:user_stat).where("user_stats.post_count = 0").destroy_all