diff options
Diffstat (limited to 'db/post_migrate/20190511144331_remove_users_support_type.rb')
-rw-r--r-- | db/post_migrate/20190511144331_remove_users_support_type.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/db/post_migrate/20190511144331_remove_users_support_type.rb b/db/post_migrate/20190511144331_remove_users_support_type.rb deleted file mode 100644 index e72fbb229b8..00000000000 --- a/db/post_migrate/20190511144331_remove_users_support_type.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -class RemoveUsersSupportType < ActiveRecord::Migration[5.1] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - INDEX_STATE_INTERNAL_ATTRS = 'index_users_on_state_and_internal_attrs' - - disable_ddl_transaction! - - def up - remove_concurrent_index :users, :state, name: INDEX_STATE_INTERNAL_ATTRS - remove_concurrent_index :users, :support_bot - - remove_column :users, :support_bot - end - - def down - add_column :users, :support_bot, :boolean # rubocop:disable Migration/AddColumnsToWideTables - - add_concurrent_index :users, :support_bot - add_concurrent_index :users, :state, - name: INDEX_STATE_INTERNAL_ATTRS, - where: 'ghost <> true AND support_bot <> true' - end -end |