Skip to content

Instantly share code, notes, and snippets.

@qoobaa
Created August 8, 2016 10:02
Show Gist options
  • Save qoobaa/567baa95e18a729995a8a2a8d3b58170 to your computer and use it in GitHub Desktop.
Save qoobaa/567baa95e18a729995a8a2a8d3b58170 to your computer and use it in GitHub Desktop.
User.where("NOT EXISTS (SELECT 1 FROM athlete_profiles WHERE athlete_profiles.fl_uid = users.fl_uid)").find_each { |user| Athlete::ProfileBuilder.new(user_id: user.id).call }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment