class ImproveChangesetUserIndex < ActiveRecord::Migration
  def self.up
    add_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx"
    remove_index :changesets, :name => "changesets_user_id_idx"
  end

  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"
  end
end

Add the changeset id to the user index so the next/previous user links can be resolved quickly.
Add the changeset id to the user index so the next/previous user links
can be resolved quickly.


