diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-04 14:11:19 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-05 13:18:35 +0300 |
commit | a6509d5a8dd5ed9dd85f7adbebc5daaf6507b85a (patch) | |
tree | 3114ada4a18c8806be92c2668c64de744da53cdd /db | |
parent | e63de3d60115242bf17acda46476d3bcb66b9dbb (diff) |
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.rb | 23 |
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 |