debian-mirror-gitlab/db/migrate/20230228133011_add_design_description.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
684 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# 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