projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6870a05a03e9c333977d843f037b0683ab2dd149
[depot.git]
/
db
/
migrate
/
20090304153613_create_line_items.rb
1
class
CreateLineItems
<
ActiveRecord
::Migration
2
def self
.
up
3
create_table
:line_items
do
|
t
|
4
t
.
integer
:product_id
5
t
.
integer
:order_id
6
t
.
integer
:quantity
7
t
.
decimal
:total_price
8
9
t
.
timestamps
10
end
11
end
12
13
def self
.
down
14
drop_table
:line_items
15
end
16
end