remove obsolete migration

as we destroy all gpg_signatures we don't need to downcase the email
addresses anymore.
This commit is contained in:
Alexis Reigel 2017-09-04 13:11:19 +02:00
parent e63de3d601
commit a6509d5a8d
1 changed files with 0 additions and 23 deletions

View File

@ -1,23 +0,0 @@
class DowncaseGpgKeyUserEmailOnGpgSignatures < ActiveRecord::Migration
DOWNTIME = false
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
class GpgSignature < ActiveRecord::Base
self.table_name = 'gpg_signatures'
include EachBatch
end
def up
GpgSignature.each_batch do |relation|
relation.update_all('gpg_key_user_email = LOWER(gpg_key_user_email)')
end
end
def down
# we can't revert the downcasing, but actually we don't need to really, as
# downcasing the emails is not a harmful change.
end
end