projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
End chapter 8
[depot.git]
/
db
/
migrate
/
20090211134638_create_sessions.rb
1
class
CreateSessions
<
ActiveRecord
::Migration
2
def self
.
up
3
create_table
:sessions
do
|
t
|
4
t
.
string
:session_id
,
:null
=>
false
5
t
.
text
:data
6
t
.
timestamps
7
end
8
9
add_index
:sessions
,
:session_id
10
add_index
:sessions
,
:updated_at
11
end
12
13
def self
.
down
14
drop_table
:sessions
15
end
16
end