Skip to content

Instantly share code, notes, and snippets.

@bad6e
Last active January 23, 2018 23:49
Show Gist options
  • Save bad6e/836f896ab2568158f992127136042430 to your computer and use it in GitHub Desktop.
Save bad6e/836f896ab2568158f992127136042430 to your computer and use it in GitHub Desktop.
Turn on Defaults Set for All Active Teams for an Organization
org = Organization.find :id
active_teams = org.teams.active
for team in active_teams
team.update(defaults_set: true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment