20140228130325_change_changesets_comments_limit.rb 256 Bytes
Newer Older
1
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2]
2
  def up
3
    if Redmine::Database.mysql?
4 5 6 7 8 9 10 11 12
      max_size = 16.megabytes
      change_column :changesets, :comments, :text, :limit => max_size
    end
  end

  def down
    # no-op
  end
end