debian-mirror-gitlab/db/migrate/20200923071622_add_description_to_requirements.rb
2021-01-30 21:13:32 +05:30

15 lines
570 B
Ruby

# 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