20160718000001_update_channel.rb 241 B

123456789
  1. class UpdateChannel < ActiveRecord::Migration
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. change_column :channels, :options, :text, limit: 500.kilobytes + 1, null: true
  6. end
  7. end