Add migration to add an index on node_id to way_nodes. This index was added
authorTom Hughes <tom@compton.nu>
Mon, 7 Jan 2008 00:30:44 +0000 (00:30 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 7 Jan 2008 00:30:44 +0000 (00:30 +0000)
to the live database a month or so back to support rollback in Potlatch.

db/migrate/009_way_nodes_node_idx.rb [new file with mode: 0644]

diff --git a/db/migrate/009_way_nodes_node_idx.rb b/db/migrate/009_way_nodes_node_idx.rb
new file mode 100644 (file)
index 0000000..41b7c9f
--- /dev/null
@@ -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