From a6509d5a8dd5ed9dd85f7adbebc5daaf6507b85a Mon Sep 17 00:00:00 2001 From: Alexis Reigel Date: Mon, 4 Sep 2017 13:11:19 +0200 Subject: [PATCH] remove obsolete migration as we destroy all gpg_signatures we don't need to downcase the email addresses anymore. --- ...se_gpg_key_user_email_on_gpg_signatures.rb | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 db/post_migrate/20170828124518_downcase_gpg_key_user_email_on_gpg_signatures.rb diff --git a/db/post_migrate/20170828124518_downcase_gpg_key_user_email_on_gpg_signatures.rb b/db/post_migrate/20170828124518_downcase_gpg_key_user_email_on_gpg_signatures.rb deleted file mode 100644 index a11a9b0669f..00000000000 --- a/db/post_migrate/20170828124518_downcase_gpg_key_user_email_on_gpg_signatures.rb +++ /dev/null @@ -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