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.
This commit is contained in:
parent
425b3654d7
commit
38b7137fe3
1 changed files with 9 additions and 0 deletions
9
db/migrate/009_way_nodes_node_idx.rb
Normal file
9
db/migrate/009_way_nodes_node_idx.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue