Sha256: 3cdfd3c5d32debb07d6ca912ebb5e12f55337c123a29f2179799f5c34b0e4f21

Contents?: true

Size: 387 Bytes

Versions: 21

Compression:

Stored size: 387 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def self.up
	  create_table :products do |t|
	    t.string :name, :default => "", :null => false
	    t.text :description
	    t.decimal :master_price, :precision => 8, :scale => 2
	    t.integer :category_id
      t.integer :viewable_id
      t.timestamps
    end
  end

  def self.down
    drop_table "products"
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 db/migrate/009_create_products.rb
spree-enriquez-0.9.4 db/migrate/009_create_products.rb
spree-0.9.4 db/migrate/009_create_products.rb
spree-0.9.3 db/migrate/009_create_products.rb
spree-0.9.2 db/migrate/009_create_products.rb
spree-0.9.1 db/migrate/009_create_products.rb
spree-0.9.0 db/migrate/009_create_products.rb
spree-0.8.4 db/migrate/009_create_products.rb
spree-0.8.5 db/migrate/009_create_products.rb
spree-0.2.0 db/migrate/009_create_products.rb
spree-0.4.0 db/migrate/009_create_products.rb
spree-0.4.1 db/migrate/009_create_products.rb
spree-0.5.0 db/migrate/009_create_products.rb
spree-0.6.0 db/migrate/009_create_products.rb
spree-0.5.1 db/migrate/009_create_products.rb
spree-0.7.1 db/migrate/009_create_products.rb
spree-0.7.0 db/migrate/009_create_products.rb
spree-0.8.0 db/migrate/009_create_products.rb
spree-0.8.1 db/migrate/009_create_products.rb
spree-0.8.2 db/migrate/009_create_products.rb