debian-mirror-gitlab/db/migrate/20230228133011_add_design_description.rb
2023-05-27 22:25:52 +05:30

18 lines
684 B
Ruby

# frozen_string_literal: true
class AddDesignDescription < Gitlab::Database::Migration[2.1]
# rubocop:disable Migration/AddLimitToTextColumns
# text limit is added in a separate migration
def up
add_column :design_management_designs, :cached_markdown_version, :integer
add_column :design_management_designs, :description, :text
add_column :design_management_designs, :description_html, :text
end
# rubocop:enable Migration/AddLimitToTextColumns
def down
remove_column :design_management_designs, :cached_markdown_version
remove_column :design_management_designs, :description
remove_column :design_management_designs, :description_html
end
end