projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Created tables, product scaffold
[depot.git]
/
db
/
migrate
/
20080724075409_create_products.rb
1
class
CreateProducts
<
ActiveRecord
::Migration
2
def self
.
up
3
create_table
:products
do
|
t
|
4
t
.
string
:title
5
t
.
text
:description
6
t
.
string
:image_url
7
8
t
.
timestamps
9
end
10
end
11
12
def self
.
down
13
drop_table
:products
14
end
15
end