summaryrefslogtreecommitdiff
path: root/db/migrate/markdown_cache_limits_to_mysql.rb
blob: f6686db3dc057e76e607227a1e7db9d91d8e3ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class MarkdownCacheLimitsToMysql < ActiveRecord::Migration
  DOWNTIME = false

  def up
    return unless Gitlab::Database.mysql?

    change_column :snippets, :content_html, :text, limit: 2147483647
  end

  def down
    # no-op
  end
end