Handle not ready repos
[gitorious.git] / db / migrate / 20120214094615_add_project_memberships.rb
blobe89142ffa319b17d201e884671411cfb0fce24b6
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
12   def self.down
13     drop_table :project_memberships
14   end
15 end