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
kdmny-spree-0.0.1 db/migrate/011_create_variants.rb
spree-enriquez-0.9.4 db/migrate/011_create_variants.rb
spree-0.9.4 db/migrate/011_create_variants.rb
spree-0.9.3 db/migrate/011_create_variants.rb
spree-0.9.2 db/migrate/011_create_variants.rb
spree-0.9.1 db/migrate/011_create_variants.rb
spree-0.9.0 db/migrate/011_create_variants.rb
spree-0.8.4 db/migrate/011_create_variants.rb
spree-0.8.5 db/migrate/011_create_variants.rb
spree-0.2.0 db/migrate/011_create_variants.rb
spree-0.4.0 db/migrate/011_create_variants.rb
spree-0.4.1 db/migrate/011_create_variants.rb
spree-0.5.0 db/migrate/011_create_variants.rb
spree-0.5.1 db/migrate/011_create_variants.rb
spree-0.6.0 db/migrate/011_create_variants.rb
spree-0.7.1 db/migrate/011_create_variants.rb
spree-0.7.0 db/migrate/011_create_variants.rb
spree-0.8.0 db/migrate/011_create_variants.rb
spree-0.8.1 db/migrate/011_create_variants.rb
spree-0.8.2 db/migrate/011_create_variants.rb