What is Arel: Between ActiveRecord and SQL Queries

I recently learned that ActiveRecord uses Arel under the hood. What is Arel? When would it be useful in practice? let's find out! Motivation ActiveRecord is useful and its DSL allows us to write many queries with .find_by and .where. But it does have limitations in the types of…