Skip to content

Instantly share code, notes, and snippets.

@apeeyush
Created July 7, 2014 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeeyush/78e846559523435800c2 to your computer and use it in GitHub Desktop.
Save apeeyush/78e846559523435800c2 to your computer and use it in GitHub Desktop.
Ruby Script for Geniverse
Log.all.where(application: 'Geniverse').where(event: 'User logged in').each do |log|
username = log.parameters["username"]
session = log.session
Log.where(session: session).update_all(username: username)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment