projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added availability date to product table
[depot.git]
/
db
/
migrate
/
20090128142730_add_product_price.rb
1
class
AddProductPrice
<
ActiveRecord
::Migration
2
def self
.
up
3
add_column
:products
,
:price
,
:decimal
,
:precision
=>
8
,
:scale
=>
2
,
:default
=>
0
4
end
5
6
def self
.
down
7
remove_column
:products
,
:price
8
end
9
end