summaryrefslogtreecommitdiff
path: root/db/migrate/20210128140232_add_text_limit_to_dependency_proxy_manifests_content_type.rb
blob: 035e4795ce0131f0482da1234dae3042f4a7cbe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class AddTextLimitToDependencyProxyManifestsContentType < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers
  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_text_limit :dependency_proxy_manifests, :content_type, 255
  end

  def down
    remove_text_limit :dependency_proxy_manifests, :content_type
  end
end