Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding some more missing indexes

  • Loading branch information...
commit 7ce65d00a6d38702abf597546a5e26f44b88519e 1 parent b7dc37b
@qrush qrush authored
View
13 db/migrate/20090901141418_add_more_missing_indexes.rb
@@ -0,0 +1,13 @@
+class AddMoreMissingIndexes < ActiveRecord::Migration
+ def self.up
+ add_index 'subscriptions', 'rubygem_id'
+ add_index 'subscriptions', 'user_id'
+ add_index 'dependencies', 'version_id'
+ end
+
+ def self.down
+ remove_index 'subscriptions', 'rubygem_id'
+ remove_index 'subscriptions', 'user_id'
+ remove_index 'dependencies', 'version_id'
+ end
+end
View
6 db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20090826043208) do
+ActiveRecord::Schema.define(:version => 20090901141418) do
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
@@ -34,6 +34,7 @@
end
add_index "dependencies", ["rubygem_id"], :name => "index_dependencies_on_rubygem_id"
+ add_index "dependencies", ["version_id"], :name => "index_dependencies_on_version_id"
create_table "linksets", :force => true do |t|
t.integer "rubygem_id"
@@ -79,6 +80,9 @@
t.datetime "updated_at"
end
+ add_index "subscriptions", ["rubygem_id"], :name => "index_subscriptions_on_rubygem_id"
+ add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
+
create_table "users", :force => true do |t|
t.string "email"
t.string "encrypted_password", :limit => 128
Please sign in to comment.
Something went wrong with that request. Please try again.