debian-mirror-gitlab/db/migrate/markdown_cache_limits_to_mysql.rb

14 lines
245 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class MarkdownCacheLimitsToMysql < ActiveRecord::Migration[4.2]
2017-08-17 22:00:37 +05:30
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :snippets, :content_html, :text, limit: 2147483647
end
def down
# no-op
end
end