if I have two models post and comment with post has_many comments, how can I get all posts that satisfy "all my comments were created_at < 1.month.ago"
oh... maybe the easiest way is to check if the negation of the statement has count == 0
MyModel.find_each is failing because there isn't a primary ID (its a join table). any tips?
I have a post model has a new comment_count property, and I want to do a one time migration to initialize it. Post.joins(:comments).update_all(:comment_count => 'not sure what to put here')
jxf: to get the count of comments that belong to the post and put it into the comment_count column
tubbo: it seems weird to have to specify all the options on the controller. I would expect to just set an option for the root serializer, and have that serializer add options to its child serializers. know what i mean?