PageRenderTime 39ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/db/migrate/limits_to_mysql.rb

https://gitlab.com/visay/gitlab-ce
Ruby | 12 lines | 10 code | 1 blank | 1 comment | 0 complexity | 2a965d841618f853d31937f8eaafabfd MD5 | raw file
 1# rubocop:disable all
 2class LimitsToMysql < ActiveRecord::Migration
 3  def up
 4    return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/
 5
 6    change_column :merge_request_diffs, :st_commits, :text, limit: 2147483647
 7    change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647
 8    change_column :snippets, :content, :text, limit: 2147483647
 9    change_column :notes, :st_diff, :text, limit: 2147483647
10    change_column :events, :data, :text, limit: 2147483647
11  end
12end