Sha256: cd7b1820cecf82cedfe7fe8409e5fd58cca4d75de34adeb78f6fdc638a566ff3

Contents?: true

Size: 502 Bytes

Versions: 96

Compression:

Stored size: 502 Bytes

Contents

class CreateVariants < ActiveRecord::Migration
  def change
    create_table :variants do |t|
      t.string :sku, :null => false
      t.string :description, :null => false
      t.decimal :price, :null => false
      t.integer :quantity, :null => false, :default => 0
      t.integer :item_id, :null => false
      t.string :item_type, :null => false
      t.boolean :active, :null => false, :default => false
      t.boolean :unlimited_inventory, :null => false, :default => false
    end
  end
end

Version data entries

96 entries across 96 versions & 2 rubygems

Version Path
piggybak-0.6.3 db/migrate/20111227213558_create_variants.rb
piggybak-0.6.2 db/migrate/20111227213558_create_variants.rb
piggybak-0.6.1 db/migrate/20111227213558_create_variants.rb
piggybak-0.6.0 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.5 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.4 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.3 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.2 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.1 db/migrate/20111227213558_create_variants.rb
piggybak-0.5.0 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.39 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.38 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.37 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.36 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.35 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.34 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.33 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.32 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.31 db/migrate/20111227213558_create_variants.rb
piggybak-0.4.30 db/migrate/20111227213558_create_variants.rb