fix AR scope for user.rb