projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
End chapter 10
[depot.git]
/
db
/
migrate
/
20090304153209_create_orders.rb
1
class
CreateOrders
<
ActiveRecord
::Migration
2
def self
.
up
3
create_table
:orders
do
|
t
|
4
t
.
string
:name
5
t
.
text
:address
6
t
.
string
:email
7
t
.
string
:pay_type
,
:limit
=>
10
8
9
t
.
timestamps
10
end
11
end
12
13
def self
.
down
14
drop_table
:orders
15
end
16
end