The ActiveRecord interface does not provide a wrapper for or
. It is provided by Arel however, which is what ActiveRecord uses. You can access a model's arel table by using the arel_table
class method.
Take a look at the OR section of the Arel github: