adding new database index to speed up feeds
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user