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
/
20120214094615_add_project_memberships.rb
blob
e89142ffa319b17d201e884671411cfb0fce24b6
1
class AddProjectMemberships < ActiveRecord::Migration
2
def self.up
3
create_table :project_memberships do |t|
4
t.integer :project_id
5
t.string :member_type
6
t.integer :member_id
7
t.timestamps
8
end
9
add_index :project_memberships, [:project_id, :member_id, :member_type], :name => "project_memberships_index"
10
end
11
12
def self.down
13
drop_table :project_memberships
14
end
15
end