Skip to content

Commit b85631f

Browse files
author
Tom Copeland
committed
This speeds up gem index updates a lot
1 parent de6439b commit b85631f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class AddUniqueIndexToGemNamespaceOwnershipsNamespace < ActiveRecord::Migration
2+
3+
def self.up
4+
add_index :gem_namespace_ownerships, :namespace, :unique => true
5+
end
6+
7+
def self.down
8+
remove_index :gem_namespace_ownerships, :namespace
9+
end
10+
end

0 commit comments

Comments
 (0)