Understanding Rails Scopes and Class Methods for Efficient Database Queries Scopes in Rails are special methods to run SQL queries that you can build in any rails model. A scope will always return an ActiveRecord::Relation object, even if the conditional evaluates to false , whereas a class meth...
Source: [Dev.to](https://dev.to/akladyous/understanding-scopes-in-rails-5g32)