time
where(completed_at: 1.week.ago .. Time.current)
where('timesheets.updated_at < ?', 1.week.ago)
where('timesheets.submitted_at <= ?', 2.days.ago)
where('timesheets.applied_at >= ?', 1.month.from_now)
sql
- check query statement with
#to_sql
method.