X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/84db1d66b7d819a4a777d2b9e5909cffe82c514e..b4952ff7f20e296b00af8ec57382e5fd6d45ab09:/db/migrate/049_improve_changeset_user_index.rb diff --git a/db/migrate/049_improve_changeset_user_index.rb b/db/migrate/049_improve_changeset_user_index.rb index af5d1a2ac..b58860d60 100644 --- a/db/migrate/049_improve_changeset_user_index.rb +++ b/db/migrate/049_improve_changeset_user_index.rb @@ -1,4 +1,4 @@ -class ImproveChangesetUserIndex < ActiveRecord::Migration +class ImproveChangesetUserIndex < ActiveRecord::Migration[4.2] def self.up add_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx" remove_index :changesets, :name => "changesets_user_id_idx" @@ -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