debian-mirror-gitlab/db/migrate/20200508021128_remove_ultraauth_provider_from_identities.rb
2020-06-23 00:09:42 +05:30

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