Skip to content

Instantly share code, notes, and snippets.

@gtan66
Last active October 5, 2020 21:54
Show Gist options
  • Save gtan66/0f4a26e815cf4292cb19b97ce976cd4c to your computer and use it in GitHub Desktop.
Save gtan66/0f4a26e815cf4292cb19b97ce976cd4c to your computer and use it in GitHub Desktop.
Reactivate employee fix https://jira.we.co/browse/SPMC-268
Employee.unscoped.where(email: ["alice.ivanoff@wework.com", "oliver.citrin@wework.com"]).each do |employee|
employee.user_uuid = employee.uuid
employee.deleted_at = nil
employee.save
end
@we4tech
Copy link

we4tech commented May 31, 2018

Looks good to me.
👍

@Whitespace
Copy link

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