Skip to content

Instantly share code, notes, and snippets.

@mholubowski
Created September 12, 2013 19:32
Show Gist options
  • Save mholubowski/6542700 to your computer and use it in GitHub Desktop.
Save mholubowski/6542700 to your computer and use it in GitHub Desktop.
NotificationSubscription.where(confirmed: true)
.joins(property: :feedback_inputs)
.where("feedback_inputs.created_at >= :cutoff", {cutoff: 1.hour.ago})
@mholubowski
Copy link
Author

NotificationSubscription.where(confirmed: true)
.joins(property: :feedback_inputs)
.where("feedback_inputs.created_at >= :cutoff", {cutoff: {notification_subscription: :last_email_sent_at}})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment