Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200313101649_fill_ghost_user_type.rb')
-rw-r--r--db/migrate/20200313101649_fill_ghost_user_type.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/migrate/20200313101649_fill_ghost_user_type.rb b/db/migrate/20200313101649_fill_ghost_user_type.rb
deleted file mode 100644
index fa0c02e5413..00000000000
--- a/db/migrate/20200313101649_fill_ghost_user_type.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# frozen_string_literal: true
-
-class FillGhostUserType < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- def up
- execute('UPDATE users SET user_type = 5 WHERE ghost IS TRUE AND user_type IS NULL')
- end
-
- def down
- execute('UPDATE users SET user_type = NULL WHERE ghost IS TRUE AND user_type IS NOT NULL')
- end
-end