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

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

class AddDescriptionToRequirements < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  # rubocop:disable Migration/AddLimitToTextColumns
  # limit for description is added in 20200923071644_add_text_limit_to_requirements_description
  # for description_html limit is not set because it's for caching purposes and
  # its value is generated from `description`
  def change
    add_column :requirements, :description, :text
    add_column :requirements, :description_html, :text
  end
  # rubocop:enable Migration/AddLimitToTextColumns
end