Skip to content

Instantly share code, notes, and snippets.

@avidas
Created January 3, 2018 17:35
Show Gist options
  • Save avidas/c10e69d318c5dabc6001c96eccbe10cb to your computer and use it in GitHub Desktop.
Save avidas/c10e69d318c5dabc6001c96eccbe10cb to your computer and use it in GitHub Desktop.
begin
TenantService.switch_to_rest_of_world_tenant
location = Location.find_by_code("VAN01")
floor = Floor.find_by(location_id: location.id, floor_number: 16)
hda = HotDeskArea.find_by(floor_id: floor.id)
hda.update_attributes(archived_at: nil)
end
@kgoettsc
Copy link

kgoettsc commented Jan 3, 2018

👍

@ianguffy
Copy link

ianguffy commented Jan 3, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment