Add 'tools/arvbox/' from commit 'd3d368758db1f4a9fa5b89f77b5ee61d68ef5b72'
[arvados.git] / services / api / db / migrate / 20130207195855_add_index_on_timestamps.rb
1 class AddIndexOnTimestamps < ActiveRecord::Migration
2   def tables
3     %w{api_clients collections jobs job_steps links logs nodes pipeline_invocations pipelines projects specimens users}
4   end
5
6   def change
7     tables.each do |t|
8       add_index t.to_sym, :created_at
9       add_index t.to_sym, :modified_at
10     end
11   end
12 end