]> git.openstreetmap.org Git - rails.git/blob - db/migrate/019_add_timestamp_indexes.rb
Call .to_sentence on site.key.table.entry. Translations are free to take advantage...
[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