Sha256: be80449dff4422aca972b76b55292494217aeba93b624cddf76fab691992fd07

Contents?: true

Size: 597 Bytes

Versions: 8

Compression:

Stored size: 597 Bytes

Contents

# This migration comes from tb_checkout_engine (originally 20140703185258)
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

8 entries across 8 versions & 2 rubygems

Version Path
tb_checkout-1.1.1 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.1.0 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.0.7 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.0.6 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.0.5 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_commerce-0.0.1 spec/dummy/db/migrate/20150323152923_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.0.4 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb
tb_checkout-1.0.3 spec/dummy/db/migrate/20140915202269_create_tb_checkout_cart_items.tb_checkout_engine.rb