]> git.openstreetmap.org Git - rails.git/blob - db/migrate/019_add_timestamp_indexes.rb
Add frozen_string_literal comments to ruby files
[rails.git] / db / migrate / 019_add_timestamp_indexes.rb
1 # frozen_string_literal: true
2
3 class AddTimestampIndexes < ActiveRecord::Migration[4.2]
4   def self.up
5     add_index :current_ways, :timestamp, :name => :current_ways_timestamp_idx
6     add_index :current_relations, :timestamp, :name => :current_relations_timestamp_idx
7   end
8
9   def self.down
10     remove_index :current_ways, :name => :current_ways_timestamp_idx
11     remove_index :current_relations, :name => :current_relations_timestamp_idx
12   end
13 end