Last active
October 5, 2020 21:54
-
-
Save gtan66/0f4a26e815cf4292cb19b97ce976cd4c to your computer and use it in GitHub Desktop.
Reactivate employee fix https://jira.we.co/browse/SPMC-268
This file contains hidden or 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
Employee.unscoped.where(email: ["[email protected]", "[email protected]"]).each do |employee| | |
employee.user_uuid = employee.uuid | |
employee.deleted_at = nil | |
employee.save | |
end |
Please remove this or make it a private gist as this is publicly searchable.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks good to me.
👍