Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2015 15:25
Show Gist options
  • Save anonymous/f3107d328da67eb99c1e to your computer and use it in GitHub Desktop.
Save anonymous/f3107d328da67eb99c1e to your computer and use it in GitHub Desktop.
y = x.joins(:dream_color_monitor)
.where(["calibrations.date < ?", 76.days.ago])
.pluck("dream_color_monitors.tag")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment