Merge branch 'master' into openid
authorTom Hughes <tom@compton.nu>
Sun, 16 May 2010 11:11:01 +0000 (12:11 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 16 May 2010 11:11:01 +0000 (12:11 +0100)
db/migrate/049_improve_changeset_user_index.rb
db/migrate/20100513171259_add_user_date_index_to_changeset.rb

index af5d1a2..f02a63d 100644 (file)
@@ -6,6 +6,6 @@ class ImproveChangesetUserIndex < ActiveRecord::Migration
 
   def self.down
     add_index :changesets, [:user_id], :name => "changesets_user_id_idx"
-    remove_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx"
+    remove_index :changesets, :name => "changesets_user_id_id_idx"
   end
 end
index 22e1f08..f1d7f43 100644 (file)
@@ -4,6 +4,6 @@ class AddUserDateIndexToChangeset < ActiveRecord::Migration
   end
 
   def self.down
-    remove_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx"
+    remove_index :changesets, :name => "changesets_user_id_created_at_idx"
   end
 end