Sha256: a49b3910bc096a98aa4416bfaec7acb3c97961643a364d4c6e7ee8fe4904aba6
Contents?: true
Size: 522 Bytes
Versions: 7
Compression:
Stored size: 522 Bytes
Contents
class CreateTbCheckoutCartItems < ActiveRecord::Migration def change create_table :tb_checkout_cart_items do |t| t.integer :cart_id, :null => false t.integer :item_id, :null => false t.string :item_type, :null => false t.string :item_description t.decimal :item_price, :precision => 8, :scale => 2 t.integer :quantity, :default => 1 t.timestamps end add_index :tb_checkout_cart_items, :cart_id add_index :tb_checkout_cart_items, [:item_id, :item_type] end end
Version data entries
7 entries across 7 versions & 1 rubygems