Welcome to mirror list, hosted at ThFree Co, Russian Federation.

limits_to_mysql.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33cb19aff9ef554810a1cf691d66d6571a5f3280 (plain)
1
2
3
4
5
6
7
8
class LimitsToMysql < ActiveRecord::Migration[4.2]
  def up
    return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/

    change_column :snippets, :content, :text, limit: 2147483647
    change_column :notes, :st_diff, :text, limit: 2147483647
  end
end