adding new database index to speed up feeds

This commit is contained in:
ioBridge committed 2011-03-29 17:06:15 -04:00
1 parent 1f4a118cc7
commit 2d818a723d
2 files changed
+97 -1

No files matched your search

@@ -0,0 +1,9 @@
class AddChannelIdEntryIdIndexToFeeds < ActiveRecord::Migration
def self.up
add_index :feeds, [:channel_id, :entry_id]
end
def self.down
remove_index :feeds, [:channel_id, :entry_id]
end
end