summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-04 13:11:19 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-09-05 12:18:35 +0200
commita6509d5a8dd5ed9dd85f7adbebc5daaf6507b85a (patch)
tree3114ada4a18c8806be92c2668c64de744da53cdd /db
parente63de3d60115242bf17acda46476d3bcb66b9dbb (diff)
downloadgitlab-ce-a6509d5a8dd5ed9dd85f7adbebc5daaf6507b85a.tar.gz
remove obsolete migration
as we destroy all gpg_signatures we don't need to downcase the email addresses anymore.
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20170828124518_downcase_gpg_key_user_email_on_gpg_signatures.rb23
1 files changed, 0 insertions, 23 deletions
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