20161228000001_add_taskbar_meta.rb 376 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class AddTaskbarMeta < 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. add_column :taskbars, :preferences, :text, limit: 5.megabytes + 1, null: true
  7. add_index :taskbars, [:key]
  8. Rails.cache.clear
  9. end
  10. end