Sha256: 90bfa76b98a4e1700c0acf4350fb24c01e0bbc46f834822b4dc65e21d8d52061

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

class CreateCartItems < ActiveRecord::Migration
  def self.up
	  create_table "cart_items", :force => true do |t|
	    t.column "cart_id",      :integer, :null => false
	    t.column "product_id",   :integer, :null => false
      t.column "variation_id", :integer
	    t.column "quantity",     :integer, :null => false
	  end
  end

  def self.down
    drop_table "cart_items"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/db/migrate/002_create_cart_items.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/db/migrate/002_create_cart_items.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/db/migrate/002_create_cart_items.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/db/migrate/002_create_cart_items.rb
spree-0.0.5 starter-app/vendor/plugins/spree/db/migrate/002_create_cart_items.rb
spree-0.0.6 starter-app/vendor/plugins/spree/db/migrate/002_create_cart_items.rb
spree-0.0.7 starter-app/vendor/plugins/spree/db/migrate/002_create_cart_items.rb