changelog shortlog tags changeset file revisions annotate raw

db/migrate/003_create_orders.rb

revision 10: c7be8325050f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/migrate/003_create_orders.rb	Mon Mar 10 03:24:46 2008 +0900
@@ -0,0 +1,14 @@
+class CreateOrders < ActiveRecord::Migration
+  def self.up
+    create_table :orders do |t|
+      t.string :name
+      t.string :email
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :orders
+  end
+end