Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User:
- leader_id
- Transaction:
- to_id #=> 'All users with leader_id of 1'
- to_type #=> 'User'
- from_id #=> *
- from_type #=> 'Advertisement'
- I need a way to COUNT(*) the Transactions with a to_id for a user that has a leader_id of 1 (or given number)
Add Comment
Please, Sign In to add comment