Demystifying ActiveRecord query generation – Arel
If you are using Rails, chances are you must be using ActiveRecord extensively. Let’s explore how Active record internally creates queries. How SQL query is created in Active Record? In Active Record, the sql statement generation is handled by Arel, All the commands written in active record is passed to Arel, Arel constructs the query…