Sha256: 9c9c794517e501992c7fee52d2e1f20e4b5c7058563fbb11ab1719ea5a8df098

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

class AddOriginalPromotionIds < ActiveRecord::Migration[7.0]
  def change
    add_reference :friendly_promotions, :original_promotion, type: :integer, index: {name: :index_original_promotion_id}, foreign_key: {to_table: :spree_promotions}
    add_reference :friendly_promotion_actions, :original_promotion_action, type: :integer, index: {name: :index_original_promotion_action_id}, foreign_key: {to_table: :spree_promotion_actions}
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_friendly_promotions-1.9.3 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.9.2 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.9.1 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.9.0 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.0.0 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.0.0.rc.3 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.0.0.rc.2 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.0.0.rc.1 db/migrate/20231013181921_add_original_promotion_ids.rb
solidus_friendly_promotions-1.0.0.pre db/migrate/20231013181921_add_original_promotion_ids.rb