Upgrade scopes for Rails 4