diff options
Diffstat (limited to 'db/migrate/20091017214015_add_missing_indexes_to_members.rb')
-rw-r--r-- | db/migrate/20091017214015_add_missing_indexes_to_members.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20091017214015_add_missing_indexes_to_members.rb b/db/migrate/20091017214015_add_missing_indexes_to_members.rb new file mode 100644 index 000000000..5fdf560fa --- /dev/null +++ b/db/migrate/20091017214015_add_missing_indexes_to_members.rb @@ -0,0 +1,11 @@ +class AddMissingIndexesToMembers < ActiveRecord::Migration + def self.up + add_index :members, :user_id + add_index :members, :project_id + end + + def self.down + remove_index :members, :user_id + remove_index :members, :project_id + end +end |