Skip to content

Commit

Permalink
This speeds up gem index updates a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Copeland committed Oct 21, 2009
1 parent de6439b commit b85631f
Showing 1 changed file with 10 additions and 0 deletions.
@@ -0,0 +1,10 @@
class AddUniqueIndexToGemNamespaceOwnershipsNamespace < ActiveRecord::Migration

def self.up
add_index :gem_namespace_ownerships, :namespace, :unique => true
end

def self.down
remove_index :gem_namespace_ownerships, :namespace
end
end

0 comments on commit b85631f

Please sign in to comment.