It seems that the Arel predicate Betweencan only be used with ranges, e.g.
between(1.day.ago.time..Time.current)
Does anyone know a way to use it with other columns? how
between(table[:since]..table[:till])
(the latter will not work, but it shows the idea). In the end i want
column BETWEEN table.since AND table.till
source
share