diff options
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 |