Project

General

Profile

Feature #19869 » 0002-Raises-issues-description-limit-to-4GB-19869.patch

okkez _, 2016-02-09 17:10

View differences:

db/migrate/20160209143726_change_issues_description_limit.rb
1
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration
2
  def up
3
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
4
      max_size = 16.megabytes
5
      change_column :issues, :description, :text, :limit => max_size
6
    end
7
  end
8

  
9
  def down
10
    # no-op
11
  end
12
end
(2-2/2)