summaryrefslogtreecommitdiffstats
path: root/db/migrate/20241103150135_change_settings_value_limit.rb
blob: 5fc2381b45ee167d543b386bfb611cf95b3f77f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class ChangeSettingsValueLimit < ActiveRecord::Migration[7.2]
  def up
    if Redmine::Database.mysql?
      max_size = 16.megabytes
      change_column :settings, :value, :text, :limit => max_size
    end
  end

  def down
    # no-op
  end
end