Created
July 7, 2014 11:46
-
-
Save apeeyush/78e846559523435800c2 to your computer and use it in GitHub Desktop.
Ruby Script for Geniverse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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