view db/migrate/20140228130325_change_changesets_comments_limit.rb @ 1558:a0c46d6fe7bc feature_1136

Add hgtags export
author Chris Cannam
date Thu, 14 Jan 2016 09:56:38 +0000
parents dffacf8a6908
children
line wrap: on
line source
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration
  def up
    if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
      max_size = 16.megabytes
      change_column :changesets, :comments, :text, :limit => max_size
    end
  end

  def down
    # no-op
  end
end