projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved to Netbeans 6.5. Started order creation
[depot.git]
/
db
/
migrate
/
20090304153209_create_orders.rb
diff --git a/db/migrate/20090304153209_create_orders.rb
b/db/migrate/20090304153209_create_orders.rb
new file mode 100644
(file)
index 0000000..
a0a1598
--- /dev/null
+++ b/
db/migrate/20090304153209_create_orders.rb
@@ -0,0
+1,16
@@
+class CreateOrders < ActiveRecord::Migration
+ def self.up
+ create_table :orders do |t|
+ t.string :name
+ t.text :address
+ t.string :email
+ t.string :pay_type
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :orders
+ end
+end