20161228000001_add_taskbar_meta.rb 293 B

1234567891011
  1. class AddTaskbarMeta < ActiveRecord::Migration[4.2]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. add_column :taskbars, :preferences, :text, limit: 5.megabytes + 1, null: true
  6. add_index :taskbars, [:key]
  7. Cache.clear
  8. end
  9. end