changelog shortlog tags changeset manifest revisions annotate raw

db/migrate/002_create_products.rb

changeset 9: 5cf82beef889
author: moriq@moriq.com
date: Mon Mar 10 03:22:11 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add scaffold product.
1class CreateProducts < ActiveRecord::Migration
2 def self.up
3 create_table :products do |t|
4 t.string :name
5 t.integer :price
6
7 t.timestamps
8 end
9 end
10
11 def self.down
12 drop_table :products
13 end
14end