Skip to content

Commit

Permalink
Hotfix: Unscope hidden teams during migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed May 5, 2024
1 parent bd7fdc8 commit 482580f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20240503144557_migrate_wdpc_to_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class MigrateWdpcToGroups < ActiveRecord::Migration[7.1]
include RoleMigrationHelper

def change
team = Team.find_by_friendly_id('wdpc')
team = Team.with_hidden.find_by_friendly_id('wdpc')
# email was removed in https://github.com/thewca/worldcubeassociation.org/pull/6065, but I don't
# think there was any reason to remove it. Hence adding it back.
metadata = GroupsMetadataTeamsCommittees.create!(email: '[email protected]', friendly_id: team.friendly_id)
Expand Down

0 comments on commit 482580f

Please sign in to comment.