added indexes

This commit is contained in:
albert
2012-01-18 16:59:06 -05:00
parent 4283bce8b9
commit 2e4d417de1
4 changed files with 7 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ class CreateArtistUrls < ActiveRecord::Migration
add_index :artist_urls, :artist_id
add_index :artist_urls, :normalized_url
add_index :artist_urls, :url
execute "create index index_artist_urls_on_url_pattern on artist_urls (url text_pattern_ops)"
execute "create index index_artist_urls_on_normalized_url_pattern on artist_urls (normalized_url text_pattern_ops)"
end
def self.down