repo.or.cz
/
gitorious.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Handle not ready repos
[gitorious.git]
/
db
/
migrate
/
20091125143413_create_favorites.rb
blob
04b177b5d31ebb989e3c79ad891926bc20620c59
1
class CreateFavorites < ActiveRecord::Migration
2
def self.up
3
create_table :favorites do |t|
4
t.integer :user_id
5
t.string :watchable_type
6
t.integer :watchable_id
7
t.string :action
8
9
t.timestamps
10
end
11
end
12
13
def self.down
14
drop_table :favorites
15
end
16
end