20170420000001_chat_increase_message_size.rb 261 B

12345678910
  1. class ChatIncreaseMessageSize < ActiveRecord::Migration[4.2]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. change_column :chat_messages, :content, :text, limit: 20.megabytes + 1, null: false
  6. end
  7. end