]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20100513171259_add_user_date_index_to_changeset.rb
Avoid error when there is no layer with a keyid
[rails.git] / db / migrate / 20100513171259_add_user_date_index_to_changeset.rb
index 22e1f08fbfe67eece5c8409100d5e2fb08c0e234..7c9c13782f368ae9bb17922a5501e3a921b211b2 100644 (file)
@@ -1,9 +1,9 @@
-class AddUserDateIndexToChangeset < ActiveRecord::Migration
+class AddUserDateIndexToChangeset < ActiveRecord::Migration[5.0]
   def self.up
     add_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx"
   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