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

20231016010919_cleanup_bigint_conversion_for_award_emoji_for_self_managed.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25490c9403d269eaa83d5d3d23fdd55eda093c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class CleanupBigintConversionForAwardEmojiForSelfManaged < Gitlab::Database::Migration[2.1]
  include Gitlab::Database::MigrationHelpers::ConvertToBigint

  enable_lock_retries!

  def up
    return if com_or_dev_or_test_but_not_jh?

    cleanup_conversion_of_integer_to_bigint(:award_emoji, [:awardable_id])
  end

  def down
    # no-op
  end
end