]> git.openstreetmap.org Git - rails.git/commitdiff
fix migration to remove original stupid index hopefully
authorSteve Coast <steve@asklater.com>
Sat, 3 May 2008 14:45:15 +0000 (14:45 +0000)
committerSteve Coast <steve@asklater.com>
Sat, 3 May 2008 14:45:15 +0000 (14:45 +0000)
db/migrate/012_add_user_preference_id.rb

index 9dee2378a129fc9acacf2775b87077805f807216..7357ca9b270ab45955753e16d65cc67af662e009 100644 (file)
@@ -1,7 +1,7 @@
 class AddUserPreferenceId < ActiveRecord::Migration
   def self.up
+    remove_index 'user_preferences', ['id', 'k']
     add_column "user_preferences", "id", :bigint, :limit => 64, :null => false, :options => "AUTO_INCREMENT"
-    
     add_index "user_preferences", ["id"], :name => "user_preferences_id_idx"
   end