gitlab-org--gitlab-foss/db/migrate/20200508021128_remove_ultraauth_provider_from_identities.rb

18 lines
402 B
Ruby

# frozen_string_literal: true
class RemoveUltraauthProviderFromIdentities < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :identities, :provider
execute "DELETE FROM identities WHERE provider = 'ultraauth'"
remove_concurrent_index :identities, :provider
end
def down
end
end