Handle not ready repos
[gitorious.git] / db / migrate / 025_add_indices_to_events.rb
blob0c56f4beb3e7577c2fc44ed6aa26bb3bb787fd83
1 class AddIndicesToEvents < ActiveRecord::Migration
2   def self.up
3     add_index :events, [:target_type, :target_id]
4     add_index :events, :created_at
5     add_index :events, :action
6   end
8   def self.down
9     remove_index :events, [:target_type, :target_id]
10     remove_index :events, :created_at
11     remove_index :events, :action
12   end
13 end