Sha256: 67c3694ced0476c451da24765de0edeb1ca1e11373dc3a88d3ac143e7080e4ca

Contents?: true

Size: 322 Bytes

Versions: 21

Compression:

Stored size: 322 Bytes

Contents

class CreateVariants < ActiveRecord::Migration
  def self.up
    create_table :variants do |t| 
      t.integer :product_id
      t.string :sku, :default => "", :null => false
      t.decimal :price, :precision => 8, :scale => 2, :null => false
    end
  end

  def self.down
    drop_table :variants
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
spree-0.8.3 db/migrate/011_create_variants.rb