Sha256: 364f3094e05ec337b6fe75f15114bb4ddcfa38d9080e59b744a927b111559470

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

class CreateTbCommerceCarts < ActiveRecord::Migration
  def change
    create_table :tb_commerce_carts do |t|
      t.references :spud_user, :index => true, :foreign_key => true, :null => true
      t.string :session_id, :limit => 32
      t.boolean :is_completed, :default => false
      t.boolean :is_abandoned, :default => false
      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/20150512184222_create_tb_commerce_carts.rb
tb_commerce-0.0.3 db/migrate/20150512184222_create_tb_commerce_carts.rb
tb_commerce-0.0.2 db/migrate/20150512184222_create_tb_commerce_carts.rb