upgrade to Ruby 2.1, add scopes to sales performance model