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

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

class AddAvatarAndDescriptionToTopic < Gitlab::Database::Migration[1.0]
  # rubocop:disable Migration/AddLimitToTextColumns
  def up
    add_column :topics, :avatar, :text
    add_column :topics, :description, :text
  end
  # rubocop:enable Migration/AddLimitToTextColumns

  def down
    remove_column :topics, :avatar
    remove_column :topics, :description
  end
end