Sha256: dd2c98c413582c34d49095573d6064cc612cba417733a5a46d45e5084fab39f5

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

class CreateShoppingCartOrderItems < ActiveRecord::Migration[5.1]
  def change
    create_table :shopping_cart_order_items do |t|
      t.integer :quantity, default: 1
      t.integer :product_id, index: true
      t.integer :order_id, index: true

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loker-shopping-cart-0.1.3 db/migrate/20180924112154_create_shopping_cart_order_items.rb
loker-shopping-cart-0.1.2 db/migrate/20180924112154_create_shopping_cart_order_items.rb
loker-shopping-cart-0.1.1 db/migrate/20180924112154_create_shopping_cart_order_items.rb