changelog shortlog tags changeset manifest revisions annotate raw

db/migrate/003_create_orders.rb

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