openstreetmap-website/db/migrate/009_way_nodes_node_idx.rb
Tom Hughes 38b7137fe3 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.
2008-01-07 00:30:44 +00:00

9 lines
226 B
Ruby

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