20200205000001_chat_add_allow_website.rb 247 B

123456789
  1. class ChatAddAllowWebsite < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. add_column :chats, :whitelisted_websites, :string, limit: 5000, null: true
  6. end
  7. end