Sha256: 24eeb54a59f7bd3b69bdb811b2285ca310b9fce9ad905006992ff9c095861d24
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
class AddPromotionCodeIdToSpreeAdjustments < ActiveRecord::Migration[5.0] def up unless column_exists?(:spree_adjustments, :promotion_code_id) add_column :spree_adjustments, :promotion_code_id, :integer end unless index_exists?(:spree_adjustments, :promotion_code_id) add_index :spree_adjustments, :promotion_code_id, name: "index_spree_adjustments_on_promotion_code_id" end end end
Version data entries
2 entries across 2 versions & 1 rubygems