Sha256: 4344fee3db66df10aa6b75829eb56b8a8a297969aed5bfd2a60ef47d72d50fe2

Contents?: true

Size: 481 Bytes

Versions: 3

Compression:

Stored size: 481 Bytes

Contents

class CreateTbCommerceCartItems < ActiveRecord::Migration
  def change
    create_table :tb_commerce_cart_items do |t|
      t.references :tb_commerce_cart, index: true, foreign_key: true
      t.references :tb_commerce_product_sku, index: true, foreign_key: true
      t.string :description
      t.decimal :price, :precision => 8, :scale => 2
      t.integer :quantity, :default => 1
      t.string :configuration, :limit => 1000
      t.timestamps null: false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150512184506_create_tb_commerce_cart_items.rb
tb_commerce-0.0.3 db/migrate/20150512184506_create_tb_commerce_cart_items.rb
tb_commerce-0.0.2 db/migrate/20150512184506_create_tb_commerce_cart_items.rb