beast rev 2066
[beast-modified.git] / db / migrate / 035_needed_indexes.rb
blobcdb82d227ab95809045c605ee83b106251c2a497
1 class NeededIndexes < ActiveRecord::Migration
2   def self.up
3     add_index :posts, :user_id
4     add_index :posts, :topic_id
5     add_index :topics, :forum_id
6   end
8   def self.down
9     remove_index :posts, :user_id
10     remove_index :posts, :topic_id
11     remove_index :topics, :forum_id
12   end
13 end