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

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

class AddPronunciationToUserDetails < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  def up
    # rubocop:disable Migration/AddLimitToTextColumns
    # limit is added in 20210729061556_add_text_limit_to_user_details_pronunciation.rb
    with_lock_retries do
      add_column :user_details, :pronunciation, :text, null: true
    end
    # rubocop:enable Migration/AddLimitToTextColumns
  end

  def down
    with_lock_retries do
      remove_column :user_details, :pronunciation
    end
  end
end