20180128000001_chat_add_ip_country.rb 304 B

12345678910
  1. class ChatAddIpCountry < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. add_column :chats, :block_ip, :string, limit: 5000, null: true
  6. add_column :chats, :block_country, :string, limit: 5000, null: true
  7. end
  8. end