Redid up to end of Chapter 6 under Rails2.2.2 and Gems 1.3.1, with Product.date_available
[depot.git] / db / migrate / 20090202160210_create_products.rb
1 class CreateProducts < ActiveRecord::Migration
2 def self.up
3 create_table :products do |t|
4 t.string :title
5 t.text :description
6 t.string :image_url
7
8 t.timestamps
9 end
10 end
11
12 def self.down
13 drop_table :products
14 end
15 end