From: Tom Hughes Date: Mon, 20 Apr 2009 13:31:57 +0000 (+0000) Subject: Add a user index to the changeset table. X-Git-Tag: live~8123 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c4f937f09907d6ffce6c6e9c96bbacea351a5c1a Add a user index to the changeset table. --- diff --git a/db/migrate/026_add_changeset_user_index.rb b/db/migrate/026_add_changeset_user_index.rb new file mode 100644 index 000000000..fed0af7c0 --- /dev/null +++ b/db/migrate/026_add_changeset_user_index.rb @@ -0,0 +1,9 @@ +class AddChangesetUserIndex < ActiveRecord::Migration + def self.up + add_index "changesets", ["user_id"], :name => "changesets_user_id_idx" + end + + def self.down + remove_index "changesets", :name => "changesets_user_id_idx" + end +end