view .svn/pristine/5b/5b955d286b27793486f23b8585e47c04cc883872.svn-base @ 1533:59e13100ea95 cannam

Fix to user lookup
author Chris Cannam
date Wed, 11 Feb 2015 14:17: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