debian-mirror-gitlab/db/migrate/20200923071622_add_description_to_requirements.rb

16 lines
570 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# 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