提交 a6509d5a 编写于 作者: A Alexis Reigel

remove obsolete migration

as we destroy all gpg_signatures we don't need to downcase the email
addresses anymore.
上级 e63de3d6
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册