]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/009_way_nodes_node_idx.rb
Add migration to add an index on node_id to way_nodes. This index was added
[rails.git] / db / migrate / 009_way_nodes_node_idx.rb
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