summaryrefslogtreecommitdiff
path: root/db/migrate/20111101155952_add_index_to_phone_book_entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20111101155952_add_index_to_phone_book_entry.rb')
-rw-r--r--db/migrate/20111101155952_add_index_to_phone_book_entry.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20111101155952_add_index_to_phone_book_entry.rb b/db/migrate/20111101155952_add_index_to_phone_book_entry.rb
new file mode 100644
index 0000000..1627e0f
--- /dev/null
+++ b/db/migrate/20111101155952_add_index_to_phone_book_entry.rb
@@ -0,0 +1,10 @@
+class AddIndexToPhoneBookEntry < ActiveRecord::Migration
+ def change
+ add_index :phone_book_entries, :first_name
+ add_index :phone_book_entries, :last_name
+ add_index :phone_book_entries, :organization
+ add_index :phone_book_entries, :first_name_phonetic
+ add_index :phone_book_entries, :last_name_phonetic
+ add_index :phone_book_entries, :organization_phonetic
+ end
+end