debian-mirror-gitlab/db/migrate/markdown_cache_limits_to_mysql.rb
2019-02-13 22:33:31 +05:30

13 lines
245 B
Ruby

class MarkdownCacheLimitsToMysql < ActiveRecord::Migration[4.2]
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :snippets, :content_html, :text, limit: 2147483647
end
def down
# no-op
end
end