Power tools for Active Record relations (scopes