16 lines
570 B
Ruby
16 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
|