PageRenderTime 224ms CodeModel.GetById 221ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/db/migrate/merge_request_diff_file_limits_to_mysql.rb

https://gitlab.com/visay/gitlab-ce
Ruby | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | 4fe27f46d10e1ed7197ba091274813b9 MD5 | raw file
 1class MergeRequestDiffFileLimitsToMysql < ActiveRecord::Migration
 2  DOWNTIME = false
 3
 4  def up
 5    return unless Gitlab::Database.mysql?
 6
 7    change_column :merge_request_diff_files, :diff, :text, limit: 2147483647
 8  end
 9
10  def down
11  end
12end