Define scopes on models inherited from ActiveRecord::Base