20160509000001_contenteditable_iamges.rb 500 B

123456789101112
  1. class ContenteditableIamges < 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 :text_modules, :content, :text, limit: 10.megabytes + 1, null: false
  6. change_column :signatures, :body, :text, limit: 10.megabytes + 1, null: true
  7. change_column :ticket_articles, :body, :text, limit: 20.megabytes + 1, null: false
  8. change_column :taskbars, :state, :text, limit: 20.megabytes + 1, null: true
  9. end
  10. end