ActiveRecord Logic Challenge - Smart Ways to Use AR Timestamp
- by keruilin
My question is somewhat specific to my app's issue, but the answer should be instructive in terms of use cases for association logic and the record timestamp.
I have an NBA pick 'em game where I want to award badges for picking x number of games in a row correctly -- 10, 20, 30.
Here are the models, attributes, and associations in-play:
User
id
…