From: Tom Hughes Date: Mon, 7 Jan 2008 00:30:44 +0000 (+0000) Subject: Add migration to add an index on node_id to way_nodes. This index was added X-Git-Tag: live~7964 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/38b7137fe3c5e88b0551c536aa1087a0b32145f4?hp=425b3654d711eb01a8ce5511a123cc4c24b6db02 Add migration to add an index on node_id to way_nodes. This index was added to the live database a month or so back to support rollback in Potlatch. --- diff --git a/db/migrate/009_way_nodes_node_idx.rb b/db/migrate/009_way_nodes_node_idx.rb new file mode 100644 index 000000000..41b7c9fcd --- /dev/null +++ b/db/migrate/009_way_nodes_node_idx.rb @@ -0,0 +1,9 @@ +class WayNodesNodeIdx < ActiveRecord::Migration + def self.up + add_index "way_nodes", ["node_id"], :name => "way_nodes_node_idx" + end + + def self.down + remove_index "way_nodes", :name => "way_nodes_node_idx" + end +end