summaryrefslogtreecommitdiff
path: root/db/post_migrate/20201120071303_drop_feature_filter_type_from_user_preferences.rb
blob: b00ea0aba769513d74a264486e4f55aa8e0e6a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class DropFeatureFilterTypeFromUserPreferences < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    with_lock_retries do
      remove_column :user_preferences, :feature_filter_type
    end
  end

  def down
    with_lock_retries do
      add_column :user_preferences, :feature_filter_type, :bigint
    end
  end
end