Class: CreateProducts

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/20101122174719_create_products.rb

Class Method Summary collapse

Class Method Details

.downObject



16
17
18
# File 'lib/db/migrate/20101122174719_create_products.rb', line 16

def self.down
  drop_table :products
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/db/migrate/20101122174719_create_products.rb', line 2

def self.up
  create_table :products do |t|
    t.string :part
    t.string :vendor
    t.string :product
    t.string :version
    t.string :update_nr
    t.string :edition
    t.string :language

    t.timestamps
  end
end