Sha256: c56e70018e2cb8aecdf9b067483b7e2ccf23bd3d3d5e49d64944d45d8f1f8ead

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 Bytes

Contents

class CreateVariants < ActiveRecord::Migration
  def self.up
    create_table :shop_variants do |t|
      t.string  :name
      t.text    :options_json
    end
    
    create_table :shop_product_variants do |t|
      t.string  :name
      t.decimal :price
      
      t.integer :product_id
    end
  end

  def self.down
    remove_table :shop_variants
    remove_table :shop_product_variants
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
radiant-shop-extension-0.11.6 db/migrate/20100929081200_create_variants.rb
radiant-shop-extension-0.11.5 db/migrate/20100929081200_create_variants.rb
radiant-shop-extension-0.11.4 db/migrate/20100929081200_create_variants.rb
radiant-shop-extension-0.11.3 db/migrate/20100929081200_create_variants.rb
radiant-shop-extension-0.11.1 db/migrate/20100929081200_create_variants.rb
radiant-shop-extension-0.11.0 db/migrate/20100929081200_create_variants.rb