]> git.openstreetmap.org Git - rails.git/commitdiff
Fix some bogus down migrations
authorTom Hughes <tom@compton.nu>
Sun, 16 May 2010 11:10:28 +0000 (12:10 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 16 May 2010 11:10:28 +0000 (12:10 +0100)
db/migrate/049_improve_changeset_user_index.rb
db/migrate/20100513171259_add_user_date_index_to_changeset.rb

index af5d1a2ac2aa90cffb08446f70cce182a7d20d9b..f02a63dcbfcd2ec42a5c9f7e8f2ae3e3d085b867 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 22e1f08fbfe67eece5c8409100d5e2fb08c0e234..f1d7f43e8678b1ff63808910d026ea82564ac4e8 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