You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20190315094151_change_custom_values_value_limit.rb 255B

123456789101112
  1. class ChangeCustomValuesValueLimit < ActiveRecord::Migration[5.2]
  2. def up
  3. if Redmine::Database.mysql?
  4. max_size = 16.megabytes
  5. change_column :custom_values, :value, :text, :limit => max_size
  6. end
  7. end
  8. def down
  9. # no-op
  10. end
  11. end