Sha256: 3f5b04f5eb90e7fc0d309b3dab451968c89f2869a2aabd8d0fbaeb47be859b72

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

class CreateOrderPromotions < ActiveRecord::Migration[7.0]
  def change
    create_table :solidus_promotions_order_promotions do |t|
      t.references :order, type: :integer, index: true, null: false, foreign_key: { to_table: :spree_orders }
      t.references :promotion, index: true, null: false, foreign_key: { to_table: :solidus_promotions_promotions }
      t.references :promotion_code, index: true, null: true, foreign_key: { to_table: :solidus_promotions_promotion_codes }

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_promotions-4.5.1 db/migrate/20230705171556_create_order_promotions.rb
solidus_promotions-4.5.0 db/migrate/20230705171556_create_order_promotions.rb
solidus_promotions-4.4.2 db/migrate/20230705171556_create_order_promotions.rb
solidus_promotions-4.4.1 db/migrate/20230705171556_create_order_promotions.rb
solidus_promotions-4.4.0 db/migrate/20230705171556_create_order_promotions.rb