Skip to content

Instantly share code, notes, and snippets.

@bengolder
Created December 11, 2017 22:39
Show Gist options
  • Save bengolder/13ecebf0b4ca5e856af7155a6afadbec to your computer and use it in GitHub Desktop.
Save bengolder/13ecebf0b4ca5e856af7155a6afadbec to your computer and use it in GitHub Desktop.
SNAP application Follow up query
SnapApplication.where("sms_consented = ? AND id >= 205 AND id <= 361", true,).each do |app|
puts [
app.id,
app.primary_member.first_name,
app.primary_member.last_name,
app.email,
app.phone_number,
app.sms_consented,
].join("\t")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment