20180816022444_add_promotion_id_to_pre_sale.rb 203 B

12345
  1. class AddPromotionIdToPreSale < ActiveRecord::Migration
  2. def change
  3. add_column :pre_sales, :promotion_id, :integer, index: true, null: true unless column_exists? :pre_sales, :promotion_id
  4. end
  5. end