camertron / scuttle-rb

A library for transforming raw SQL statements into ActiveRecord/Arel queries. Ruby wrapper and tests for scuttle-java.
86 stars 2 forks source link

choked on mysql function #17

Closed roscom closed 1 year ago

roscom commented 1 year ago

SELECT blog_events.* FROM blog_events INNER JOIN events ON events.id = blog_events.event_id WHERE blog_events.created_at < DATE_SUB(now(),interval events.days_to_keep day)

camertron commented 1 year ago

I got this working on day 1 but had to battle some Heroku weirdness. It should finally be up and live 👍