20201104111101_change_settings_value_limit.rb

Increases size of value to long text - Aleksandar Pavic, 2020-11-03 11:21

Download (270 Bytes)

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