Sha256: bc51a096a9da787e91f7219a47fc6ebad9b42266230581c1d7ddd43638d2f46f
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
class CreateShoppingCartOrderItems < ActiveRecord::Migration[5.0] def change create_table :shopping_cart_order_items do |t| t.integer :quantity t.decimal :price, precision: 5, scale: 2 t.references :productable, polymorphic: true, index: {name: 'productable'} t.belongs_to :order, index: true t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | db/migrate/20160810062129_create_shopping_cart_order_items.rb |