Crowdtilt/CrowdtiltOpen — pull request #244 by liuhenry (2014-03-26 23:19:30+00:00)
Title: Fix length -> count for some reward + payment queries

Refactor payments_successful and payments_completed into scopes
Rewrite rewards_claimed to remove n+1 query