]> git.openstreetmap.org Git - rails.git/blob - db/migrate/019_add_timestamp_indexes.rb
M-x untabify Kai Krueger's ebcc988376b0dad8a0969803d52b1073420c77b7
[rails.git] / db / migrate / 019_add_timestamp_indexes.rb
1 class AddTimestampIndexes < ActiveRecord::Migration
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