20170420000001_chat_increase_message_size.rb 338 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class ChatIncreaseMessageSize < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. change_column :chat_messages, :content, :text, limit: 20.megabytes + 1, null: false
  7. end
  8. end