20180128000001_chat_add_ip_country.rb 381 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class ChatAddIpCountry < ActiveRecord::Migration[5.1]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. add_column :chats, :block_ip, :string, limit: 5000, null: true
  7. add_column :chats, :block_country, :string, limit: 5000, null: true
  8. end
  9. end