summaryrefslogtreecommitdiff
path: root/db/post_migrate/20200525121014_drop_users_ghost_column.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200525121014_drop_users_ghost_column.rb')
-rw-r--r--db/post_migrate/20200525121014_drop_users_ghost_column.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/db/post_migrate/20200525121014_drop_users_ghost_column.rb b/db/post_migrate/20200525121014_drop_users_ghost_column.rb
deleted file mode 100644
index 1f80bc74b9d..00000000000
--- a/db/post_migrate/20200525121014_drop_users_ghost_column.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-class DropUsersGhostColumn < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- remove_concurrent_index_by_name :users, 'index_users_on_ghost'
-
- with_lock_retries do
- remove_column :users, :ghost
- end
- end
-
- def down
- unless column_exists?(:users, :ghost)
- with_lock_retries do
- add_column :users, :ghost, :boolean # rubocop:disable Migration/AddColumnsToWideTables
- end
- end
-
- execute 'UPDATE users set ghost = TRUE WHERE user_type = 5'
-
- add_concurrent_index :users, :ghost
- end
-end