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.

20161010081528_change_journal_details_value_limit.rb 335B

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