Sha256: acec0ed4f311ac3f523c1379fc28bec1e04e96d3f41b3890b7ee978ac553fce7

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 Bytes

Contents

class CreateShippingRateDiscounts < ActiveRecord::Migration[7.0]
  def change
    create_table :solidus_promotions_shipping_rate_discounts do |t|
      t.references :benefit, type: :bigint, null: false, foreign_key: { to_table: :solidus_promotions_benefits }, index: { name: "index_shipping_rate_discounts_on_benefit_id" }
      t.references :shipping_rate, type: :integer, null: false, foreign_key: { to_table: :spree_shipping_rates }, index: { name: "index_shipping_rate_discounts_on_shipping_rate_id" }
      t.decimal :amount, precision: 10, scale: 2, null: false
      t.string :label, null: false

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_promotions-4.5.1 db/migrate/20230725074235_create_shipping_rate_discounts.rb
solidus_promotions-4.5.0 db/migrate/20230725074235_create_shipping_rate_discounts.rb
solidus_promotions-4.4.2 db/migrate/20230725074235_create_shipping_rate_discounts.rb
solidus_promotions-4.4.1 db/migrate/20230725074235_create_shipping_rate_discounts.rb
solidus_promotions-4.4.0 db/migrate/20230725074235_create_shipping_rate_discounts.rb