Is there any way to query a table with ActiveRecord with a Day Of week condition ? In the way that it can be compatible with all RDBMS ? E.g. :
Event.where("DAYOFWEEK(created_at) = 2")
This example would work with MySQL but wouldn't with Postgres, Or SQLite