]> git.openstreetmap.org Git - rails.git/blob - db/migrate/019_add_timestamp_indexes.rb
Upgrade community index to 0.4.3 to fix issue with tirana polygon
[rails.git] / db / migrate / 019_add_timestamp_indexes.rb
1 class AddTimestampIndexes < ActiveRecord::Migration[5.0]
2   def self.up
3     add_index :current_ways, :timestamp, :name => :current_ways_timestamp_idx
4     add_index :current_relations, :timestamp, :name => :current_relations_timestamp_idx
5   end
6
7   def self.down
8     remove_index :current_ways, :name => :current_ways_timestamp_idx
9     remove_index :current_relations, :name => :current_relations_timestamp_idx
10   end
11 end