20170421110000_add_origin_by_id.rb 219 B

123456789
  1. class AddOriginById < 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 :ticket_articles, :origin_by_id, :integer
  6. end
  7. end