https://robots.thoughtbot.com/using-arel-to-compose-sql-queries
The
The
Arel::Table
object acts like a hash which contains each column on thetable. The columns given by Arel are a type of
Node
, which means it hasseveral methods available on it to construct queries. You can find a list ofmost of the methods available on
Node
s in the file
predications.rb.