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

20210929025600_add_phone_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: 9bcfd4ab7e3fbbd0688e2c4007c5bad5ef4b89ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddPhoneToUserDetails < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  # rubocop:disable Migration/AddLimitToTextColumns
  def up
    add_column :user_details, :phone, :text, comment: 'JiHu-specific column'
  end
  # rubocop:enable Migration/AddLimitToTextColumns

  def down
    remove_column :user_details, :phone
  end
end